home *** CD-ROM | disk | FTP | other *** search
/ Apple WWDC 1996 / WWDC96_1996 (CD).toast / Technology Materials / MacOS 8 Resources / Developer Tools / Mac OS 8 Interfaces & Libraries / Interfaces / CIncludes / HIWindows.h < prev    next >
C/C++ Source or Header  |  1996-05-01  |  75KB  |  2,055 lines

  1.  
  2. /*
  3.  * This file was generated by the SOM Compiler.
  4.  * FileName: HIWindows.h.
  5.  * Generated using:
  6.  *     SOM Precompiler somipc: 2.18
  7.  *     SOM Emitter emith.dll: 2.33
  8.  */
  9.  
  10. /*
  11.  * 
  12.  *      Copyright:    © 1994,1995 by Apple Computer, Inc.
  13.  *                  All rights reserved.
  14.  * 
  15.  *    10H9767, 10H9769  (C) COPYRIGHT International Business Machines Corp. 1992,1994
  16.  *    All Rights Reserved
  17.  *    Licensed Materials - Property of IBM
  18.  *    US Government Users Restricted Rights - Use, duplication or
  19.  *    disclosure restricted by GSA ADP Schedule Contract with IBM Corp.
  20.  * 
  21.  *  SOMClass: System Object Model base metaclass
  22.  */
  23.  
  24.  
  25. #ifndef SOM_HIWindow_h
  26. #define SOM_HIWindow_h
  27.  
  28.  
  29. /*
  30.  * Passthru lines: File: "C.h", "before"
  31.  */
  32. #include <Types.h>
  33. #include <Windows.h>
  34. #include <HIWindowTypes.h>
  35. #include <HIEmbeddingPanels.h>
  36.  
  37. #include <som.h>
  38.  
  39. /*
  40.  * -- This emitter treats Method Tokens as Thunks by default.
  41.  * -- Use the sc modifier "nothunks" to change this default
  42.  */
  43. #undef somresolve_
  44. #define somresolve_(obj,mToken) ((somMethodProc*)((void)obj, mToken))
  45.  
  46. /*
  47.  * Define the class name as an object type
  48.  */
  49. #ifndef HIWindow
  50. #define HIWindow SOMObject
  51. #endif
  52. #include <HIObjects.h>
  53.  
  54. /*
  55.  * Start of user-defined types:
  56.  */
  57. #ifndef SOMClass
  58.     #define SOMClass SOMObject
  59. #endif /* SOMClass */
  60. #ifndef SOMObject
  61.     #define SOMObject SOMObject
  62. #endif /* SOMObject */
  63. #ifndef HIWindow
  64.     #define HIWindow SOMObject
  65. #endif /* HIWindow */
  66. #ifndef HIEmbeddingPanel
  67.     #define HIEmbeddingPanel SOMObject
  68. #endif /* HIEmbeddingPanel */
  69.  
  70. /*
  71.  * End of user-defined types.
  72.  */
  73.  
  74. #define HIWindow_MajorVersion 0
  75. #define HIWindow_MinorVersion 0
  76.  
  77. /*
  78.  * External name shortening if required
  79.  */
  80. #ifdef SOM_USE_SHORT_EXTERNAL_NAMES
  81. #define HIWindowClassData d
  82. #endif /* SOM_USE_SHORT_EXTERNAL_NAMES */
  83. /*--------------Migration------------*/
  84.  
  85. #ifdef OLDIBMSOMAPISUPPORT
  86. #define HIWindow_classObj somNewClassReference(HIWindow)
  87. #define _HIWindow HIWindow_classObj
  88. #define HIWindowCClassData HIWindowClassData
  89. #define HIWindowNewClass(major,minor) somNewVersionedClassReference(HIWindow,major,minor)
  90. #endif
  91.  
  92. /* define xxxMetaClass macro to facilitate (cls ## MetaClass) */
  93. #define HIWindowMetaClass SOMClass
  94.  
  95. #if PRAGMA_ALIGN_SUPPORTED
  96. #  pragma options align=power
  97. #endif
  98.  
  99. /*
  100.  * Declare the class data structure
  101.  */
  102. SOMEXTERN struct HIWindowClassDataStructure {
  103. #ifdef OLDIBMSOMAPISUPPORT
  104.     SOMAny            *classObject;    /* always zero, use somNewClassReference instead */
  105. #else
  106.     long zero;
  107. #endif
  108.     somStaticClassInfo *sci;
  109.     somDToken        instanceDataToken;
  110.     long reserved [3];
  111.     somMToken InitWindow;
  112.     somMToken InitWindowInLayer;
  113.     somMToken Select;
  114.     somMToken SelectWithGroup;
  115.     somMToken Hilite;
  116.     somMToken Unhilite;
  117.     somMToken BringToFront;
  118.     somMToken SendBehind;
  119.     somMToken ShowWithoutActivate;
  120.     somMToken HideWithoutActivate;
  121.     somMToken Zoom;
  122.     somMToken ZoomOut;
  123.     somMToken Collapse;
  124.     somMToken Expand;
  125.     somMToken SetAttachedWindowGroup;
  126.     somMToken GetAttachedWindowGroup;
  127.     somMToken AddToGroup;
  128.     somMToken RemoveFromGroup;
  129.     somMToken InvalidateRect;
  130.     somMToken InvalidateRgn;
  131.     somMToken ValidateRect;
  132.     somMToken ValidateRgn;
  133.     somMToken SetPort;
  134.     somMToken BeginUpdate;
  135.     somMToken EndUpdate;
  136.     somMToken DrawGrowIcon;
  137.     somMToken PositionOnScreen;
  138.     somMToken AutoPosition;
  139.     somMToken IsPositionedOnScreen;
  140.     somMToken SetAttributes;
  141.     somMToken GetAttributes;
  142.     somMToken SetClass;
  143.     somMToken GetClass;
  144.     somMToken SetVariant;
  145.     somMToken GetVariant;
  146.     somMToken GetStructureRgn;
  147.     somMToken GetContentRgn;
  148.     somMToken GetUpdateRgn;
  149.     somMToken SetStandardState;
  150.     somMToken GetStandardState;
  151.     somMToken SetUserState;
  152.     somMToken GetUserState;
  153.     somMToken GetRootPanel;
  154.     somMToken SetRootPanel;
  155.     somMToken GetEventDispatcher;
  156.     somMToken IsHilited;
  157.     somMToken IsActive;
  158.     somMToken IsCollapsed;
  159.     somMToken HandleMouseDown;
  160.     somMToken HandleMouseMoved;
  161.     somMToken HandleMouseStoppedMoving;
  162.     somMToken HandleMouseUp;
  163.     somMToken HandleMouseDownInBack;
  164.     somMToken HandleResize;
  165.     somMToken HandleClose;
  166.     somMToken TrackPart;
  167.     somMToken DrawFrame;
  168.     somMToken DrawOutline;
  169.     somMToken DrawSizeBox;
  170.     somMToken HilitePart;
  171.     somMToken HitTest;
  172.     somMToken GetPartRgn;
  173.     somMToken GetUnusedGadgetRects;
  174.     somMToken GetGrowDirection;
  175.     somMethodProc *GetPrimaryLayer;
  176.     somMethodProc *NewWindowGroup;
  177.     somMethodProc *DisposeWindowGroup;
  178.     somMethodProc *AddWindowGroupToWindowGroup;
  179.     somMethodProc *RemoveWindowGroupFromWindowGroup;
  180.     somMethodProc *GetApplicationWindowGroup;
  181.     somMethodProc *GetWindowClassWindowGroup;
  182.     somMethodProc *GetWindowsInWindowGroup;
  183.     somMethodProc *GetWindowsInWindowGroupAndLayer;
  184.     somMethodProc *GetWindowGroupsInWindowGroup;
  185.     somMethodProc *FrontWindowOfWindowGroup;
  186.     somMethodProc *FrontNonFloatingWindow;
  187.     somMethodProc *ShowFloatingWindows;
  188.     somMethodProc *HideFloatingWindows;
  189.     somMethodProc *AreFloatersVisible;
  190.     somMethodProc *ActivateFloatingWindows;
  191.     somMethodProc *DeactivateFloatingWindows;
  192.     somMethodProc *EnableAutomaticPaletteActivation;
  193.     somMethodProc *DisableAutomaticPaletteActivation;
  194.     somMethodProc *IsAutomaticPaletteActivationEnabled;
  195.     somMethodProc *GetHIWindow;
  196.     somMToken reserved0;
  197.     somMToken reserved1;
  198.     somMToken reserved2;
  199.     somMToken reserved3;
  200.     somMToken reserved4;
  201.     somMToken reserved5;
  202.     somMToken reserved6;
  203.     somMToken reserved7;
  204.     somMToken reserved8;
  205.     somMToken reserved9;
  206.     somMToken reserved10;
  207.     somMToken reserved11;
  208.     somMToken reserved12;
  209.     somMToken reserved13;
  210.     somMToken reserved14;
  211.     somMToken reserved15;
  212.     somMToken reserved16;
  213.     somMToken reserved17;
  214.     somMToken reserved18;
  215.     somMToken reserved19;
  216.     somMToken reserved20;
  217.     somMToken reserved21;
  218.     somMToken reserved22;
  219.     somMToken HandleUpdate;
  220.     somMToken SetDefaultGrowLimits;
  221.     somMToken GetDefaultGrowLimits;
  222.     somMToken SetDefaultOptimalSize;
  223.     somMToken GetDefaultOptimalSize;
  224.     somMToken AdjustDragLimits;
  225.     somMToken AdjustGrowLimits;
  226. } SOMDLINK HIWindowClassData;
  227.  
  228. #if PRAGMA_ALIGN_SUPPORTED
  229. #  pragma options align=reset
  230. #endif
  231.  
  232. #if !defined(HIWindow_Class_Source) && !defined(SOM_Module_hiwindows_Source)
  233. #if PRAGMA_IMPORT_SUPPORTED
  234. #pragma import list HIWindowClassData
  235. #endif
  236. #endif
  237.  
  238.  
  239. /*
  240.  * New macro for HIWindow
  241.  */
  242. #define HIWindowNew() somNewObject(HIWindow)
  243.  
  244. /*
  245.  * New Method: InitWindow
  246.  */
  247. typedef OSStatus   (SOMLINK *somTD_HIWindow_InitWindow)(HIWindow *somSelf, Environment *ev,
  248.         RefLabel* identifier,
  249.         Rect* globalBounds,
  250.         HIWindowClass windowClass,
  251.         HIWindowVariant windowVariant,
  252.         HIWindowAttributes windowAttributes,
  253.         HIRootPanel* rootPanel,
  254.         HIWindow* behindThisWindow);
  255. #define somMD_HIWindow_InitWindow "::HIWindow::InitWindow"
  256. #define HIWindow_InitWindow(somSelf,ev,identifier,globalBounds,windowClass,windowVariant,windowAttributes,rootPanel,behindThisWindow) \
  257.     (SOM_Resolve(somSelf, HIWindow, InitWindow) \
  258.     (somSelf,ev,identifier,globalBounds,windowClass,windowVariant,windowAttributes,rootPanel,behindThisWindow))
  259. #ifndef SOMGD_InitWindow
  260.     #if defined _InitWindow || defined __InitWindow
  261.         #undef _InitWindow
  262.         #undef __InitWindow
  263.         #define SOMGD_InitWindow 1
  264.     #else
  265.         #define _InitWindow HIWindow_InitWindow
  266.     #endif /* _InitWindow */
  267. #endif /* SOMGD_InitWindow */
  268.  
  269. /*
  270.  * New Method: InitWindowInLayer
  271.  */
  272. typedef OSStatus   (SOMLINK *somTD_HIWindow_InitWindowInLayer)(HIWindow *somSelf, Environment *ev,
  273.         RefLabel* identifier,
  274.         Rect* globalBounds,
  275.         HIWindowClass windowClass,
  276.         HIWindowVariant windowVariant,
  277.         HIWindowAttributes windowAttributes,
  278.         HIRootPanel* rootPanel,
  279.         HIWindow* behindThisWindow,
  280.         HILayerRef containingLayer);
  281. #define somMD_HIWindow_InitWindowInLayer "::HIWindow::InitWindowInLayer"
  282. #define HIWindow_InitWindowInLayer(somSelf,ev,identifier,globalBounds,windowClass,windowVariant,windowAttributes,rootPanel,behindThisWindow,containingLayer) \
  283.     (SOM_Resolve(somSelf, HIWindow, InitWindowInLayer) \
  284.     (somSelf,ev,identifier,globalBounds,windowClass,windowVariant,windowAttributes,rootPanel,behindThisWindow,containingLayer))
  285. #ifndef SOMGD_InitWindowInLayer
  286.     #if defined _InitWindowInLayer || defined __InitWindowInLayer
  287.         #undef _InitWindowInLayer
  288.         #undef __InitWindowInLayer
  289.         #define SOMGD_InitWindowInLayer 1
  290.     #else
  291.         #define _InitWindowInLayer HIWindow_InitWindowInLayer
  292.     #endif /* _InitWindowInLayer */
  293. #endif /* SOMGD_InitWindowInLayer */
  294.  
  295. /*
  296.  * New Method: Select
  297.  */
  298. typedef OSStatus   (SOMLINK *somTD_HIWindow_Select)(HIWindow *somSelf, Environment *ev);
  299. #define somMD_HIWindow_Select "::HIWindow::Select"
  300. #define HIWindow_Select(somSelf,ev) \
  301.     (SOM_Resolve(somSelf, HIWindow, Select) \
  302.     (somSelf,ev))
  303. #ifndef SOMGD_Select
  304.     #if defined _Select || defined __Select
  305.         #undef _Select
  306.         #undef __Select
  307.         #define SOMGD_Select 1
  308.     #else
  309.         #define _Select HIWindow_Select
  310.     #endif /* _Select */
  311. #endif /* SOMGD_Select */
  312.  
  313. /*
  314.  * New Method: SelectWithGroup
  315.  */
  316. typedef OSStatus   (SOMLINK *somTD_HIWindow_SelectWithGroup)(HIWindow *somSelf, Environment *ev,
  317.         HIWindowGroupRef groupRef);
  318. #define somMD_HIWindow_SelectWithGroup "::HIWindow::SelectWithGroup"
  319. #define HIWindow_SelectWithGroup(somSelf,ev,groupRef) \
  320.     (SOM_Resolve(somSelf, HIWindow, SelectWithGroup) \
  321.     (somSelf,ev,groupRef))
  322. #ifndef SOMGD_SelectWithGroup
  323.     #if defined _SelectWithGroup || defined __SelectWithGroup
  324.         #undef _SelectWithGroup
  325.         #undef __SelectWithGroup
  326.         #define SOMGD_SelectWithGroup 1
  327.     #else
  328.         #define _SelectWithGroup HIWindow_SelectWithGroup
  329.     #endif /* _SelectWithGroup */
  330. #endif /* SOMGD_SelectWithGroup */
  331.  
  332. /*
  333.  * New Method: Hilite
  334.  */
  335. typedef OSStatus   (SOMLINK *somTD_HIWindow_Hilite)(HIWindow *somSelf, Environment *ev);
  336. #define somMD_HIWindow_Hilite "::HIWindow::Hilite"
  337. #define HIWindow_Hilite(somSelf,ev) \
  338.     (SOM_Resolve(somSelf, HIWindow, Hilite) \
  339.     (somSelf,ev))
  340. #ifndef SOMGD_Hilite
  341.     #if defined _Hilite || defined __Hilite
  342.         #undef _Hilite
  343.         #undef __Hilite
  344.         #define SOMGD_Hilite 1
  345.     #else
  346.         #define _Hilite HIWindow_Hilite
  347.     #endif /* _Hilite */
  348. #endif /* SOMGD_Hilite */
  349.  
  350. /*
  351.  * New Method: Unhilite
  352.  */
  353. typedef OSStatus   (SOMLINK *somTD_HIWindow_Unhilite)(HIWindow *somSelf, Environment *ev);
  354. #define somMD_HIWindow_Unhilite "::HIWindow::Unhilite"
  355. #define HIWindow_Unhilite(somSelf,ev) \
  356.     (SOM_Resolve(somSelf, HIWindow, Unhilite) \
  357.     (somSelf,ev))
  358. #ifndef SOMGD_Unhilite
  359.     #if defined _Unhilite || defined __Unhilite
  360.         #undef _Unhilite
  361.         #undef __Unhilite
  362.         #define SOMGD_Unhilite 1
  363.     #else
  364.         #define _Unhilite HIWindow_Unhilite
  365.     #endif /* _Unhilite */
  366. #endif /* SOMGD_Unhilite */
  367.  
  368. /*
  369.  * New Method: IsHilited
  370.  */
  371. typedef boolean   (SOMLINK *somTD_HIWindow_IsHilited)(HIWindow *somSelf, Environment *ev);
  372. #define somMD_HIWindow_IsHilited "::HIWindow::IsHilited"
  373. #define HIWindow_IsHilited(somSelf,ev) \
  374.     (SOM_Resolve(somSelf, HIWindow, IsHilited) \
  375.     (somSelf,ev))
  376. #ifndef SOMGD_IsHilited
  377.     #if defined _IsHilited || defined __IsHilited
  378.         #undef _IsHilited
  379.         #undef __IsHilited
  380.         #define SOMGD_IsHilited 1
  381.     #else
  382.         #define _IsHilited HIWindow_IsHilited
  383.     #endif /* _IsHilited */
  384. #endif /* SOMGD_IsHilited */
  385.  
  386. /*
  387.  * New Method: IsActive
  388.  */
  389. typedef boolean   (SOMLINK *somTD_HIWindow_IsActive)(HIWindow *somSelf, Environment *ev);
  390. #define somMD_HIWindow_IsActive "::HIWindow::IsActive"
  391. #define HIWindow_IsActive(somSelf,ev) \
  392.     (SOM_Resolve(somSelf, HIWindow, IsActive) \
  393.     (somSelf,ev))
  394. #ifndef SOMGD_IsActive
  395.     #if defined _IsActive || defined __IsActive
  396.         #undef _IsActive
  397.         #undef __IsActive
  398.         #define SOMGD_IsActive 1
  399.     #else
  400.         #define _IsActive HIWindow_IsActive
  401.     #endif /* _IsActive */
  402. #endif /* SOMGD_IsActive */
  403.  
  404. /*
  405.  * New Method: BringToFront
  406.  */
  407. typedef OSStatus   (SOMLINK *somTD_HIWindow_BringToFront)(HIWindow *somSelf, Environment *ev);
  408. #define somMD_HIWindow_BringToFront "::HIWindow::BringToFront"
  409. #define HIWindow_BringToFront(somSelf,ev) \
  410.     (SOM_Resolve(somSelf, HIWindow, BringToFront) \
  411.     (somSelf,ev))
  412. #ifndef SOMGD_BringToFront
  413.     #if defined _BringToFront || defined __BringToFront
  414.         #undef _BringToFront
  415.         #undef __BringToFront
  416.         #define SOMGD_BringToFront 1
  417.     #else
  418.         #define _BringToFront HIWindow_BringToFront
  419.     #endif /* _BringToFront */
  420. #endif /* SOMGD_BringToFront */
  421.  
  422. /*
  423.  * New Method: SendBehind
  424.  */
  425. typedef OSStatus   (SOMLINK *somTD_HIWindow_SendBehind)(HIWindow *somSelf, Environment *ev,
  426.         HIWindow* behindThisWindow);
  427. #define somMD_HIWindow_SendBehind "::HIWindow::SendBehind"
  428. #define HIWindow_SendBehind(somSelf,ev,behindThisWindow) \
  429.     (SOM_Resolve(somSelf, HIWindow, SendBehind) \
  430.     (somSelf,ev,behindThisWindow))
  431. #ifndef SOMGD_SendBehind
  432.     #if defined _SendBehind || defined __SendBehind
  433.         #undef _SendBehind
  434.         #undef __SendBehind
  435.         #define SOMGD_SendBehind 1
  436.     #else
  437.         #define _SendBehind HIWindow_SendBehind
  438.     #endif /* _SendBehind */
  439. #endif /* SOMGD_SendBehind */
  440.  
  441. /*
  442.  * New Method: ShowWithoutActivate
  443.  */
  444. typedef OSStatus   (SOMLINK *somTD_HIWindow_ShowWithoutActivate)(HIWindow *somSelf, Environment *ev);
  445. #define somMD_HIWindow_ShowWithoutActivate "::HIWindow::ShowWithoutActivate"
  446. #define HIWindow_ShowWithoutActivate(somSelf,ev) \
  447.     (SOM_Resolve(somSelf, HIWindow, ShowWithoutActivate) \
  448.     (somSelf,ev))
  449. #ifndef SOMGD_ShowWithoutActivate
  450.     #if defined _ShowWithoutActivate || defined __ShowWithoutActivate
  451.         #undef _ShowWithoutActivate
  452.         #undef __ShowWithoutActivate
  453.         #define SOMGD_ShowWithoutActivate 1
  454.     #else
  455.         #define _ShowWithoutActivate HIWindow_ShowWithoutActivate
  456.     #endif /* _ShowWithoutActivate */
  457. #endif /* SOMGD_ShowWithoutActivate */
  458.  
  459. /*
  460.  * New Method: HideWithoutActivate
  461.  */
  462. typedef OSStatus   (SOMLINK *somTD_HIWindow_HideWithoutActivate)(HIWindow *somSelf, Environment *ev);
  463. #define somMD_HIWindow_HideWithoutActivate "::HIWindow::HideWithoutActivate"
  464. #define HIWindow_HideWithoutActivate(somSelf,ev) \
  465.     (SOM_Resolve(somSelf, HIWindow, HideWithoutActivate) \
  466.     (somSelf,ev))
  467. #ifndef SOMGD_HideWithoutActivate
  468.     #if defined _HideWithoutActivate || defined __HideWithoutActivate
  469.         #undef _HideWithoutActivate
  470.         #undef __HideWithoutActivate
  471.         #define SOMGD_HideWithoutActivate 1
  472.     #else
  473.         #define _HideWithoutActivate HIWindow_HideWithoutActivate
  474.     #endif /* _HideWithoutActivate */
  475. #endif /* SOMGD_HideWithoutActivate */
  476.  
  477. /*
  478.  * New Method: Zoom
  479.  */
  480. typedef OSStatus   (SOMLINK *somTD_HIWindow_Zoom)(HIWindow *somSelf, Environment *ev,
  481.         HIWindowPartCode whichPart,
  482.         boolean front);
  483. #define somMD_HIWindow_Zoom "::HIWindow::Zoom"
  484. #define HIWindow_Zoom(somSelf,ev,whichPart,front) \
  485.     (SOM_Resolve(somSelf, HIWindow, Zoom) \
  486.     (somSelf,ev,whichPart,front))
  487. #ifndef SOMGD_Zoom
  488.     #if defined _Zoom || defined __Zoom
  489.         #undef _Zoom
  490.         #undef __Zoom
  491.         #define SOMGD_Zoom 1
  492.     #else
  493.         #define _Zoom HIWindow_Zoom
  494.     #endif /* _Zoom */
  495. #endif /* SOMGD_Zoom */
  496.  
  497. /*
  498.  * New Method: ZoomOut
  499.  */
  500. typedef OSStatus   (SOMLINK *somTD_HIWindow_ZoomOut)(HIWindow *somSelf, Environment *ev,
  501.         Point* idealSize);
  502. #define somMD_HIWindow_ZoomOut "::HIWindow::ZoomOut"
  503. #define HIWindow_ZoomOut(somSelf,ev,idealSize) \
  504.     (SOM_Resolve(somSelf, HIWindow, ZoomOut) \
  505.     (somSelf,ev,idealSize))
  506. #ifndef SOMGD_ZoomOut
  507.     #if defined _ZoomOut || defined __ZoomOut
  508.         #undef _ZoomOut
  509.         #undef __ZoomOut
  510.         #define SOMGD_ZoomOut 1
  511.     #else
  512.         #define _ZoomOut HIWindow_ZoomOut
  513.     #endif /* _ZoomOut */
  514. #endif /* SOMGD_ZoomOut */
  515.  
  516. /*
  517.  * New Method: Collapse
  518.  */
  519. typedef OSStatus   (SOMLINK *somTD_HIWindow_Collapse)(HIWindow *somSelf, Environment *ev);
  520. #define somMD_HIWindow_Collapse "::HIWindow::Collapse"
  521. #define HIWindow_Collapse(somSelf,ev) \
  522.     (SOM_Resolve(somSelf, HIWindow, Collapse) \
  523.     (somSelf,ev))
  524. #ifndef SOMGD_Collapse
  525.     #if defined _Collapse || defined __Collapse
  526.         #undef _Collapse
  527.         #undef __Collapse
  528.         #define SOMGD_Collapse 1
  529.     #else
  530.         #define _Collapse HIWindow_Collapse
  531.     #endif /* _Collapse */
  532. #endif /* SOMGD_Collapse */
  533.  
  534. /*
  535.  * New Method: Expand
  536.  */
  537. typedef OSStatus   (SOMLINK *somTD_HIWindow_Expand)(HIWindow *somSelf, Environment *ev);
  538. #define somMD_HIWindow_Expand "::HIWindow::Expand"
  539. #define HIWindow_Expand(somSelf,ev) \
  540.     (SOM_Resolve(somSelf, HIWindow, Expand) \
  541.     (somSelf,ev))
  542. #ifndef SOMGD_Expand
  543.     #if defined _Expand || defined __Expand
  544.         #undef _Expand
  545.         #undef __Expand
  546.         #define SOMGD_Expand 1
  547.     #else
  548.         #define _Expand HIWindow_Expand
  549.     #endif /* _Expand */
  550. #endif /* SOMGD_Expand */
  551.  
  552. /*
  553.  * New Method: IsCollapsed
  554.  */
  555. typedef boolean   (SOMLINK *somTD_HIWindow_IsCollapsed)(HIWindow *somSelf, Environment *ev);
  556. #define somMD_HIWindow_IsCollapsed "::HIWindow::IsCollapsed"
  557. #define HIWindow_IsCollapsed(somSelf,ev) \
  558.     (SOM_Resolve(somSelf, HIWindow, IsCollapsed) \
  559.     (somSelf,ev))
  560. #ifndef SOMGD_IsCollapsed
  561.     #if defined _IsCollapsed || defined __IsCollapsed
  562.         #undef _IsCollapsed
  563.         #undef __IsCollapsed
  564.         #define SOMGD_IsCollapsed 1
  565.     #else
  566.         #define _IsCollapsed HIWindow_IsCollapsed
  567.     #endif /* _IsCollapsed */
  568. #endif /* SOMGD_IsCollapsed */
  569.  
  570. /*
  571.  * New Method: SetAttachedWindowGroup
  572.  */
  573. typedef OSStatus   (SOMLINK *somTD_HIWindow_SetAttachedWindowGroup)(HIWindow *somSelf, Environment *ev,
  574.         HIWindowGroupRef groupRef);
  575. #define somMD_HIWindow_SetAttachedWindowGroup "::HIWindow::SetAttachedWindowGroup"
  576. #define HIWindow_SetAttachedWindowGroup(somSelf,ev,groupRef) \
  577.     (SOM_Resolve(somSelf, HIWindow, SetAttachedWindowGroup) \
  578.     (somSelf,ev,groupRef))
  579. #ifndef SOMGD_SetAttachedWindowGroup
  580.     #if defined _SetAttachedWindowGroup || defined __SetAttachedWindowGroup
  581.         #undef _SetAttachedWindowGroup
  582.         #undef __SetAttachedWindowGroup
  583.         #define SOMGD_SetAttachedWindowGroup 1
  584.     #else
  585.         #define _SetAttachedWindowGroup HIWindow_SetAttachedWindowGroup
  586.     #endif /* _SetAttachedWindowGroup */
  587. #endif /* SOMGD_SetAttachedWindowGroup */
  588.  
  589. /*
  590.  * New Method: GetAttachedWindowGroup
  591.  */
  592. typedef HIWindowGroupRef   (SOMLINK *somTD_HIWindow_GetAttachedWindowGroup)(HIWindow *somSelf, Environment *ev);
  593. #define somMD_HIWindow_GetAttachedWindowGroup "::HIWindow::GetAttachedWindowGroup"
  594. #define HIWindow_GetAttachedWindowGroup(somSelf,ev) \
  595.     (SOM_Resolve(somSelf, HIWindow, GetAttachedWindowGroup) \
  596.     (somSelf,ev))
  597. #ifndef SOMGD_GetAttachedWindowGroup
  598.     #if defined _GetAttachedWindowGroup || defined __GetAttachedWindowGroup
  599.         #undef _GetAttachedWindowGroup
  600.         #undef __GetAttachedWindowGroup
  601.         #define SOMGD_GetAttachedWindowGroup 1
  602.     #else
  603.         #define _GetAttachedWindowGroup HIWindow_GetAttachedWindowGroup
  604.     #endif /* _GetAttachedWindowGroup */
  605. #endif /* SOMGD_GetAttachedWindowGroup */
  606.  
  607. /*
  608.  * New Method: AddToGroup
  609.  */
  610. typedef OSStatus   (SOMLINK *somTD_HIWindow_AddToGroup)(HIWindow *somSelf, Environment *ev,
  611.         HIWindowGroupRef groupRef);
  612. #define somMD_HIWindow_AddToGroup "::HIWindow::AddToGroup"
  613. #define HIWindow_AddToGroup(somSelf,ev,groupRef) \
  614.     (SOM_Resolve(somSelf, HIWindow, AddToGroup) \
  615.     (somSelf,ev,groupRef))
  616. #ifndef SOMGD_AddToGroup
  617.     #if defined _AddToGroup || defined __AddToGroup
  618.         #undef _AddToGroup
  619.         #undef __AddToGroup
  620.         #define SOMGD_AddToGroup 1
  621.     #else
  622.         #define _AddToGroup HIWindow_AddToGroup
  623.     #endif /* _AddToGroup */
  624. #endif /* SOMGD_AddToGroup */
  625.  
  626. /*
  627.  * New Method: RemoveFromGroup
  628.  */
  629. typedef OSStatus   (SOMLINK *somTD_HIWindow_RemoveFromGroup)(HIWindow *somSelf, Environment *ev,
  630.         HIWindowGroupRef groupRef);
  631. #define somMD_HIWindow_RemoveFromGroup "::HIWindow::RemoveFromGroup"
  632. #define HIWindow_RemoveFromGroup(somSelf,ev,groupRef) \
  633.     (SOM_Resolve(somSelf, HIWindow, RemoveFromGroup) \
  634.     (somSelf,ev,groupRef))
  635. #ifndef SOMGD_RemoveFromGroup
  636.     #if defined _RemoveFromGroup || defined __RemoveFromGroup
  637.         #undef _RemoveFromGroup
  638.         #undef __RemoveFromGroup
  639.         #define SOMGD_RemoveFromGroup 1
  640.     #else
  641.         #define _RemoveFromGroup HIWindow_RemoveFromGroup
  642.     #endif /* _RemoveFromGroup */
  643. #endif /* SOMGD_RemoveFromGroup */
  644.  
  645. /*
  646.  * New Method: InvalidateRect
  647.  */
  648. typedef OSStatus   (SOMLINK *somTD_HIWindow_InvalidateRect)(HIWindow *somSelf, Environment *ev,
  649.         Rect* badRect);
  650. #define somMD_HIWindow_InvalidateRect "::HIWindow::InvalidateRect"
  651. #define HIWindow_InvalidateRect(somSelf,ev,badRect) \
  652.     (SOM_Resolve(somSelf, HIWindow, InvalidateRect) \
  653.     (somSelf,ev,badRect))
  654. #ifndef SOMGD_InvalidateRect
  655.     #if defined _InvalidateRect || defined __InvalidateRect
  656.         #undef _InvalidateRect
  657.         #undef __InvalidateRect
  658.         #define SOMGD_InvalidateRect 1
  659.     #else
  660.         #define _InvalidateRect HIWindow_InvalidateRect
  661.     #endif /* _InvalidateRect */
  662. #endif /* SOMGD_InvalidateRect */
  663.  
  664. /*
  665.  * New Method: InvalidateRgn
  666.  */
  667. typedef OSStatus   (SOMLINK *somTD_HIWindow_InvalidateRgn)(HIWindow *somSelf, Environment *ev,
  668.         RgnHandle badRgn);
  669. #define somMD_HIWindow_InvalidateRgn "::HIWindow::InvalidateRgn"
  670. #define HIWindow_InvalidateRgn(somSelf,ev,badRgn) \
  671.     (SOM_Resolve(somSelf, HIWindow, InvalidateRgn) \
  672.     (somSelf,ev,badRgn))
  673. #ifndef SOMGD_InvalidateRgn
  674.     #if defined _InvalidateRgn || defined __InvalidateRgn
  675.         #undef _InvalidateRgn
  676.         #undef __InvalidateRgn
  677.         #define SOMGD_InvalidateRgn 1
  678.     #else
  679.         #define _InvalidateRgn HIWindow_InvalidateRgn
  680.     #endif /* _InvalidateRgn */
  681. #endif /* SOMGD_InvalidateRgn */
  682.  
  683. /*
  684.  * New Method: ValidateRect
  685.  */
  686. typedef OSStatus   (SOMLINK *somTD_HIWindow_ValidateRect)(HIWindow *somSelf, Environment *ev,
  687.         Rect* goodRect);
  688. #define somMD_HIWindow_ValidateRect "::HIWindow::ValidateRect"
  689. #define HIWindow_ValidateRect(somSelf,ev,goodRect) \
  690.     (SOM_Resolve(somSelf, HIWindow, ValidateRect) \
  691.     (somSelf,ev,goodRect))
  692. #ifndef SOMGD_ValidateRect
  693.     #if defined _ValidateRect || defined __ValidateRect
  694.         #undef _ValidateRect
  695.         #undef __ValidateRect
  696.         #define SOMGD_ValidateRect 1
  697.     #else
  698.         #define _ValidateRect HIWindow_ValidateRect
  699.     #endif /* _ValidateRect */
  700. #endif /* SOMGD_ValidateRect */
  701.  
  702. /*
  703.  * New Method: ValidateRgn
  704.  */
  705. typedef OSStatus   (SOMLINK *somTD_HIWindow_ValidateRgn)(HIWindow *somSelf, Environment *ev,
  706.         RgnHandle goodRgn);
  707. #define somMD_HIWindow_ValidateRgn "::HIWindow::ValidateRgn"
  708. #define HIWindow_ValidateRgn(somSelf,ev,goodRgn) \
  709.     (SOM_Resolve(somSelf, HIWindow, ValidateRgn) \
  710.     (somSelf,ev,goodRgn))
  711. #ifndef SOMGD_ValidateRgn
  712.     #if defined _ValidateRgn || defined __ValidateRgn
  713.         #undef _ValidateRgn
  714.         #undef __ValidateRgn
  715.         #define SOMGD_ValidateRgn 1
  716.     #else
  717.         #define _ValidateRgn HIWindow_ValidateRgn
  718.     #endif /* _ValidateRgn */
  719. #endif /* SOMGD_ValidateRgn */
  720.  
  721. /*
  722.  * New Method: SetPort
  723.  */
  724. typedef OSStatus   (SOMLINK *somTD_HIWindow_SetPort)(HIWindow *somSelf, Environment *ev);
  725. #define somMD_HIWindow_SetPort "::HIWindow::SetPort"
  726. #define HIWindow_SetPort(somSelf,ev) \
  727.     (SOM_Resolve(somSelf, HIWindow, SetPort) \
  728.     (somSelf,ev))
  729. #ifndef SOMGD_SetPort
  730.     #if defined _SetPort || defined __SetPort
  731.         #undef _SetPort
  732.         #undef __SetPort
  733.         #define SOMGD_SetPort 1
  734.     #else
  735.         #define _SetPort HIWindow_SetPort
  736.     #endif /* _SetPort */
  737. #endif /* SOMGD_SetPort */
  738.  
  739. /*
  740.  * New Method: BeginUpdate
  741.  */
  742. typedef OSStatus   (SOMLINK *somTD_HIWindow_BeginUpdate)(HIWindow *somSelf, Environment *ev);
  743. #define somMD_HIWindow_BeginUpdate "::HIWindow::BeginUpdate"
  744. #define HIWindow_BeginUpdate(somSelf,ev) \
  745.     (SOM_Resolve(somSelf, HIWindow, BeginUpdate) \
  746.     (somSelf,ev))
  747. #ifndef SOMGD_BeginUpdate
  748.     #if defined _BeginUpdate || defined __BeginUpdate
  749.         #undef _BeginUpdate
  750.         #undef __BeginUpdate
  751.         #define SOMGD_BeginUpdate 1
  752.     #else
  753.         #define _BeginUpdate HIWindow_BeginUpdate
  754.     #endif /* _BeginUpdate */
  755. #endif /* SOMGD_BeginUpdate */
  756.  
  757. /*
  758.  * New Method: EndUpdate
  759.  */
  760. typedef OSStatus   (SOMLINK *somTD_HIWindow_EndUpdate)(HIWindow *somSelf, Environment *ev);
  761. #define somMD_HIWindow_EndUpdate "::HIWindow::EndUpdate"
  762. #define HIWindow_EndUpdate(somSelf,ev) \
  763.     (SOM_Resolve(somSelf, HIWindow, EndUpdate) \
  764.     (somSelf,ev))
  765. #ifndef SOMGD_EndUpdate
  766.     #if defined _EndUpdate || defined __EndUpdate
  767.         #undef _EndUpdate
  768.         #undef __EndUpdate
  769.         #define SOMGD_EndUpdate 1
  770.     #else
  771.         #define _EndUpdate HIWindow_EndUpdate
  772.     #endif /* _EndUpdate */
  773. #endif /* SOMGD_EndUpdate */
  774.  
  775. /*
  776.  * New Method: DrawGrowIcon
  777.  */
  778. typedef OSStatus   (SOMLINK *somTD_HIWindow_DrawGrowIcon)(HIWindow *somSelf, Environment *ev);
  779. #define somMD_HIWindow_DrawGrowIcon "::HIWindow::DrawGrowIcon"
  780. #define HIWindow_DrawGrowIcon(somSelf,ev) \
  781.     (SOM_Resolve(somSelf, HIWindow, DrawGrowIcon) \
  782.     (somSelf,ev))
  783. #ifndef SOMGD_DrawGrowIcon
  784.     #if defined _DrawGrowIcon || defined __DrawGrowIcon
  785.         #undef _DrawGrowIcon
  786.         #undef __DrawGrowIcon
  787.         #define SOMGD_DrawGrowIcon 1
  788.     #else
  789.         #define _DrawGrowIcon HIWindow_DrawGrowIcon
  790.     #endif /* _DrawGrowIcon */
  791. #endif /* SOMGD_DrawGrowIcon */
  792.  
  793. /*
  794.  * New Method: PositionOnScreen
  795.  */
  796. typedef OSStatus   (SOMLINK *somTD_HIWindow_PositionOnScreen)(HIWindow *somSelf, Environment *ev,
  797.         Rect* globalReferenceRect,
  798.         boolean findScreen,
  799.         HIWindowHorizontalConstraint horizontalConstraint,
  800.         HIWindowVerticalConstraint verticalConstraint);
  801. #define somMD_HIWindow_PositionOnScreen "::HIWindow::PositionOnScreen"
  802. #define HIWindow_PositionOnScreen(somSelf,ev,globalReferenceRect,findScreen,horizontalConstraint,verticalConstraint) \
  803.     (SOM_Resolve(somSelf, HIWindow, PositionOnScreen) \
  804.     (somSelf,ev,globalReferenceRect,findScreen,horizontalConstraint,verticalConstraint))
  805. #ifndef SOMGD_PositionOnScreen
  806.     #if defined _PositionOnScreen || defined __PositionOnScreen
  807.         #undef _PositionOnScreen
  808.         #undef __PositionOnScreen
  809.         #define SOMGD_PositionOnScreen 1
  810.     #else
  811.         #define _PositionOnScreen HIWindow_PositionOnScreen
  812.     #endif /* _PositionOnScreen */
  813. #endif /* SOMGD_PositionOnScreen */
  814.  
  815. /*
  816.  * New Method: AutoPosition
  817.  */
  818. typedef OSStatus   (SOMLINK *somTD_HIWindow_AutoPosition)(HIWindow *somSelf, Environment *ev,
  819.         HIWindowLocationConstraint locationConstraint,
  820.         HIWindowHorizontalConstraint horizontalConstraint,
  821.         HIWindowVerticalConstraint verticalConstraint);
  822. #define somMD_HIWindow_AutoPosition "::HIWindow::AutoPosition"
  823. #define HIWindow_AutoPosition(somSelf,ev,locationConstraint,horizontalConstraint,verticalConstraint) \
  824.     (SOM_Resolve(somSelf, HIWindow, AutoPosition) \
  825.     (somSelf,ev,locationConstraint,horizontalConstraint,verticalConstraint))
  826. #ifndef SOMGD_AutoPosition
  827.     #if defined _AutoPosition || defined __AutoPosition
  828.         #undef _AutoPosition
  829.         #undef __AutoPosition
  830.         #define SOMGD_AutoPosition 1
  831.     #else
  832.         #define _AutoPosition HIWindow_AutoPosition
  833.     #endif /* _AutoPosition */
  834. #endif /* SOMGD_AutoPosition */
  835.  
  836. /*
  837.  * New Method: IsPositionedOnScreen
  838.  */
  839. typedef boolean   (SOMLINK *somTD_HIWindow_IsPositionedOnScreen)(HIWindow *somSelf, Environment *ev,
  840.         HIWindowPartCode whichPart,
  841.         boolean entirelyOnScreen);
  842. #define somMD_HIWindow_IsPositionedOnScreen "::HIWindow::IsPositionedOnScreen"
  843. #define HIWindow_IsPositionedOnScreen(somSelf,ev,whichPart,entirelyOnScreen) \
  844.     (SOM_Resolve(somSelf, HIWindow, IsPositionedOnScreen) \
  845.     (somSelf,ev,whichPart,entirelyOnScreen))
  846. #ifndef SOMGD_IsPositionedOnScreen
  847.     #if defined _IsPositionedOnScreen || defined __IsPositionedOnScreen
  848.         #undef _IsPositionedOnScreen
  849.         #undef __IsPositionedOnScreen
  850.         #define SOMGD_IsPositionedOnScreen 1
  851.     #else
  852.         #define _IsPositionedOnScreen HIWindow_IsPositionedOnScreen
  853.     #endif /* _IsPositionedOnScreen */
  854. #endif /* SOMGD_IsPositionedOnScreen */
  855.  
  856. /*
  857.  * New Method: SetAttributes
  858.  */
  859. typedef OSStatus   (SOMLINK *somTD_HIWindow_SetAttributes)(HIWindow *somSelf, Environment *ev,
  860.         HIWindowAttributes newAttributes,
  861.         boolean redraw);
  862. #define somMD_HIWindow_SetAttributes "::HIWindow::SetAttributes"
  863. #define HIWindow_SetAttributes(somSelf,ev,newAttributes,redraw) \
  864.     (SOM_Resolve(somSelf, HIWindow, SetAttributes) \
  865.     (somSelf,ev,newAttributes,redraw))
  866. #ifndef SOMGD_SetAttributes
  867.     #if defined _SetAttributes || defined __SetAttributes
  868.         #undef _SetAttributes
  869.         #undef __SetAttributes
  870.         #define SOMGD_SetAttributes 1
  871.     #else
  872.         #define _SetAttributes HIWindow_SetAttributes
  873.     #endif /* _SetAttributes */
  874. #endif /* SOMGD_SetAttributes */
  875.  
  876. /*
  877.  * New Method: GetAttributes
  878.  */
  879. typedef HIWindowAttributes   (SOMLINK *somTD_HIWindow_GetAttributes)(HIWindow *somSelf, Environment *ev);
  880. #define somMD_HIWindow_GetAttributes "::HIWindow::GetAttributes"
  881. #define HIWindow_GetAttributes(somSelf,ev) \
  882.     (SOM_Resolve(somSelf, HIWindow, GetAttributes) \
  883.     (somSelf,ev))
  884. #ifndef SOMGD_GetAttributes
  885.     #if defined _GetAttributes || defined __GetAttributes
  886.         #undef _GetAttributes
  887.         #undef __GetAttributes
  888.         #define SOMGD_GetAttributes 1
  889.     #else
  890.         #define _GetAttributes HIWindow_GetAttributes
  891.     #endif /* _GetAttributes */
  892. #endif /* SOMGD_GetAttributes */
  893.  
  894. /*
  895.  * New Method: SetClass
  896.  */
  897. typedef OSStatus   (SOMLINK *somTD_HIWindow_SetClass)(HIWindow *somSelf, Environment *ev,
  898.         HIWindowClass newClass);
  899. #define somMD_HIWindow_SetClass "::HIWindow::SetClass"
  900. #define HIWindow_SetClass(somSelf,ev,newClass) \
  901.     (SOM_Resolve(somSelf, HIWindow, SetClass) \
  902.     (somSelf,ev,newClass))
  903. #ifndef SOMGD_SetClass
  904.     #if defined _SetClass || defined __SetClass
  905.         #undef _SetClass
  906.         #undef __SetClass
  907.         #define SOMGD_SetClass 1
  908.     #else
  909.         #define _SetClass HIWindow_SetClass
  910.     #endif /* _SetClass */
  911. #endif /* SOMGD_SetClass */
  912.  
  913. /*
  914.  * New Method: GetClass
  915.  */
  916. typedef HIWindowClass   (SOMLINK *somTD_HIWindow_GetClass)(HIWindow *somSelf, Environment *ev);
  917. #define somMD_HIWindow_GetClass "::HIWindow::GetClass"
  918. #define HIWindow_GetClass(somSelf,ev) \
  919.     (SOM_Resolve(somSelf, HIWindow, GetClass) \
  920.     (somSelf,ev))
  921. #ifndef SOMGD_GetClass
  922.     #if defined _GetClass || defined __GetClass
  923.         #undef _GetClass
  924.         #undef __GetClass
  925.         #define SOMGD_GetClass 1
  926.     #else
  927.         #define _GetClass HIWindow_GetClass
  928.     #endif /* _GetClass */
  929. #endif /* SOMGD_GetClass */
  930.  
  931. /*
  932.  * New Method: SetVariant
  933.  */
  934. typedef OSStatus   (SOMLINK *somTD_HIWindow_SetVariant)(HIWindow *somSelf, Environment *ev,
  935.         HIWindowVariant newVariant);
  936. #define somMD_HIWindow_SetVariant "::HIWindow::SetVariant"
  937. #define HIWindow_SetVariant(somSelf,ev,newVariant) \
  938.     (SOM_Resolve(somSelf, HIWindow, SetVariant) \
  939.     (somSelf,ev,newVariant))
  940. #ifndef SOMGD_SetVariant
  941.     #if defined _SetVariant || defined __SetVariant
  942.         #undef _SetVariant
  943.         #undef __SetVariant
  944.         #define SOMGD_SetVariant 1
  945.     #else
  946.         #define _SetVariant HIWindow_SetVariant
  947.     #endif /* _SetVariant */
  948. #endif /* SOMGD_SetVariant */
  949.  
  950. /*
  951.  * New Method: GetVariant
  952.  */
  953. typedef HIWindowVariant   (SOMLINK *somTD_HIWindow_GetVariant)(HIWindow *somSelf, Environment *ev);
  954. #define somMD_HIWindow_GetVariant "::HIWindow::GetVariant"
  955. #define HIWindow_GetVariant(somSelf,ev) \
  956.     (SOM_Resolve(somSelf, HIWindow, GetVariant) \
  957.     (somSelf,ev))
  958. #ifndef SOMGD_GetVariant
  959.     #if defined _GetVariant || defined __GetVariant
  960.         #undef _GetVariant
  961.         #undef __GetVariant
  962.         #define SOMGD_GetVariant 1
  963.     #else
  964.         #define _GetVariant HIWindow_GetVariant
  965.     #endif /* _GetVariant */
  966. #endif /* SOMGD_GetVariant */
  967.  
  968. /*
  969.  * New Method: GetStructureRgn
  970.  */
  971. typedef OSStatus   (SOMLINK *somTD_HIWindow_GetStructureRgn)(HIWindow *somSelf, Environment *ev,
  972.         RgnHandle structureCopy);
  973. #define somMD_HIWindow_GetStructureRgn "::HIWindow::GetStructureRgn"
  974. #define HIWindow_GetStructureRgn(somSelf,ev,structureCopy) \
  975.     (SOM_Resolve(somSelf, HIWindow, GetStructureRgn) \
  976.     (somSelf,ev,structureCopy))
  977. #ifndef SOMGD_GetStructureRgn
  978.     #if defined _GetStructureRgn || defined __GetStructureRgn
  979.         #undef _GetStructureRgn
  980.         #undef __GetStructureRgn
  981.         #define SOMGD_GetStructureRgn 1
  982.     #else
  983.         #define _GetStructureRgn HIWindow_GetStructureRgn
  984.     #endif /* _GetStructureRgn */
  985. #endif /* SOMGD_GetStructureRgn */
  986.  
  987. /*
  988.  * New Method: GetContentRgn
  989.  */
  990. typedef OSStatus   (SOMLINK *somTD_HIWindow_GetContentRgn)(HIWindow *somSelf, Environment *ev,
  991.         RgnHandle contentCopy);
  992. #define somMD_HIWindow_GetContentRgn "::HIWindow::GetContentRgn"
  993. #define HIWindow_GetContentRgn(somSelf,ev,contentCopy) \
  994.     (SOM_Resolve(somSelf, HIWindow, GetContentRgn) \
  995.     (somSelf,ev,contentCopy))
  996. #ifndef SOMGD_GetContentRgn
  997.     #if defined _GetContentRgn || defined __GetContentRgn
  998.         #undef _GetContentRgn
  999.         #undef __GetContentRgn
  1000.         #define SOMGD_GetContentRgn 1
  1001.     #else
  1002.         #define _GetContentRgn HIWindow_GetContentRgn
  1003.     #endif /* _GetContentRgn */
  1004. #endif /* SOMGD_GetContentRgn */
  1005.  
  1006. /*
  1007.  * New Method: GetUpdateRgn
  1008.  */
  1009. typedef OSStatus   (SOMLINK *somTD_HIWindow_GetUpdateRgn)(HIWindow *somSelf, Environment *ev,
  1010.         RgnHandle updateCopy);
  1011. #define somMD_HIWindow_GetUpdateRgn "::HIWindow::GetUpdateRgn"
  1012. #define HIWindow_GetUpdateRgn(somSelf,ev,updateCopy) \
  1013.     (SOM_Resolve(somSelf, HIWindow, GetUpdateRgn) \
  1014.     (somSelf,ev,updateCopy))
  1015. #ifndef SOMGD_GetUpdateRgn
  1016.     #if defined _GetUpdateRgn || defined __GetUpdateRgn
  1017.         #undef _GetUpdateRgn
  1018.         #undef __GetUpdateRgn
  1019.         #define SOMGD_GetUpdateRgn 1
  1020.     #else
  1021.         #define _GetUpdateRgn HIWindow_GetUpdateRgn
  1022.     #endif /* _GetUpdateRgn */
  1023. #endif /* SOMGD_GetUpdateRgn */
  1024.  
  1025. /*
  1026.  * New Method: SetStandardState
  1027.  */
  1028. typedef OSStatus   (SOMLINK *somTD_HIWindow_SetStandardState)(HIWindow *somSelf, Environment *ev,
  1029.         Rect* globalStandardState);
  1030. #define somMD_HIWindow_SetStandardState "::HIWindow::SetStandardState"
  1031. #define HIWindow_SetStandardState(somSelf,ev,globalStandardState) \
  1032.     (SOM_Resolve(somSelf, HIWindow, SetStandardState) \
  1033.     (somSelf,ev,globalStandardState))
  1034. #ifndef SOMGD_SetStandardState
  1035.     #if defined _SetStandardState || defined __SetStandardState
  1036.         #undef _SetStandardState
  1037.         #undef __SetStandardState
  1038.         #define SOMGD_SetStandardState 1
  1039.     #else
  1040.         #define _SetStandardState HIWindow_SetStandardState
  1041.     #endif /* _SetStandardState */
  1042. #endif /* SOMGD_SetStandardState */
  1043.  
  1044. /*
  1045.  * New Method: GetStandardState
  1046.  */
  1047. typedef Rect*   (SOMLINK *somTD_HIWindow_GetStandardState)(HIWindow *somSelf, Environment *ev,
  1048.         Rect* globalStandardState);
  1049. #define somMD_HIWindow_GetStandardState "::HIWindow::GetStandardState"
  1050. #define HIWindow_GetStandardState(somSelf,ev,globalStandardState) \
  1051.     (SOM_Resolve(somSelf, HIWindow, GetStandardState) \
  1052.     (somSelf,ev,globalStandardState))
  1053. #ifndef SOMGD_GetStandardState
  1054.     #if defined _GetStandardState || defined __GetStandardState
  1055.         #undef _GetStandardState
  1056.         #undef __GetStandardState
  1057.         #define SOMGD_GetStandardState 1
  1058.     #else
  1059.         #define _GetStandardState HIWindow_GetStandardState
  1060.     #endif /* _GetStandardState */
  1061. #endif /* SOMGD_GetStandardState */
  1062.  
  1063. /*
  1064.  * New Method: SetUserState
  1065.  */
  1066. typedef OSStatus   (SOMLINK *somTD_HIWindow_SetUserState)(HIWindow *somSelf, Environment *ev,
  1067.         Rect* globalUserState);
  1068. #define somMD_HIWindow_SetUserState "::HIWindow::SetUserState"
  1069. #define HIWindow_SetUserState(somSelf,ev,globalUserState) \
  1070.     (SOM_Resolve(somSelf, HIWindow, SetUserState) \
  1071.     (somSelf,ev,globalUserState))
  1072. #ifndef SOMGD_SetUserState
  1073.     #if defined _SetUserState || defined __SetUserState
  1074.         #undef _SetUserState
  1075.         #undef __SetUserState
  1076.         #define SOMGD_SetUserState 1
  1077.     #else
  1078.         #define _SetUserState HIWindow_SetUserState
  1079.     #endif /* _SetUserState */
  1080. #endif /* SOMGD_SetUserState */
  1081.  
  1082. /*
  1083.  * New Method: GetUserState
  1084.  */
  1085. typedef Rect*   (SOMLINK *somTD_HIWindow_GetUserState)(HIWindow *somSelf, Environment *ev,
  1086.         Rect* globalUserState);
  1087. #define somMD_HIWindow_GetUserState "::HIWindow::GetUserState"
  1088. #define HIWindow_GetUserState(somSelf,ev,globalUserState) \
  1089.     (SOM_Resolve(somSelf, HIWindow, GetUserState) \
  1090.     (somSelf,ev,globalUserState))
  1091. #ifndef SOMGD_GetUserState
  1092.     #if defined _GetUserState || defined __GetUserState
  1093.         #undef _GetUserState
  1094.         #undef __GetUserState
  1095.         #define SOMGD_GetUserState 1
  1096.     #else
  1097.         #define _GetUserState HIWindow_GetUserState
  1098.     #endif /* _GetUserState */
  1099. #endif /* SOMGD_GetUserState */
  1100.  
  1101. /*
  1102.  * New Method: SetDefaultGrowLimits
  1103.  */
  1104. typedef OSStatus   (SOMLINK *somTD_HIWindow_SetDefaultGrowLimits)(HIWindow *somSelf, Environment *ev,
  1105.         Point* minimumSize,
  1106.         Point* maximumSize);
  1107. #define somMD_HIWindow_SetDefaultGrowLimits "::HIWindow::SetDefaultGrowLimits"
  1108. #define HIWindow_SetDefaultGrowLimits(somSelf,ev,minimumSize,maximumSize) \
  1109.     (SOM_Resolve(somSelf, HIWindow, SetDefaultGrowLimits) \
  1110.     (somSelf,ev,minimumSize,maximumSize))
  1111. #ifndef SOMGD_SetDefaultGrowLimits
  1112.     #if defined _SetDefaultGrowLimits || defined __SetDefaultGrowLimits
  1113.         #undef _SetDefaultGrowLimits
  1114.         #undef __SetDefaultGrowLimits
  1115.         #define SOMGD_SetDefaultGrowLimits 1
  1116.     #else
  1117.         #define _SetDefaultGrowLimits HIWindow_SetDefaultGrowLimits
  1118.     #endif /* _SetDefaultGrowLimits */
  1119. #endif /* SOMGD_SetDefaultGrowLimits */
  1120.  
  1121. /*
  1122.  * New Method: GetDefaultGrowLimits
  1123.  */
  1124. typedef OSStatus   (SOMLINK *somTD_HIWindow_GetDefaultGrowLimits)(HIWindow *somSelf, Environment *ev,
  1125.         Point* minimumSize,
  1126.         Point* maximumSize);
  1127. #define somMD_HIWindow_GetDefaultGrowLimits "::HIWindow::GetDefaultGrowLimits"
  1128. #define HIWindow_GetDefaultGrowLimits(somSelf,ev,minimumSize,maximumSize) \
  1129.     (SOM_Resolve(somSelf, HIWindow, GetDefaultGrowLimits) \
  1130.     (somSelf,ev,minimumSize,maximumSize))
  1131. #ifndef SOMGD_GetDefaultGrowLimits
  1132.     #if defined _GetDefaultGrowLimits || defined __GetDefaultGrowLimits
  1133.         #undef _GetDefaultGrowLimits
  1134.         #undef __GetDefaultGrowLimits
  1135.         #define SOMGD_GetDefaultGrowLimits 1
  1136.     #else
  1137.         #define _GetDefaultGrowLimits HIWindow_GetDefaultGrowLimits
  1138.     #endif /* _GetDefaultGrowLimits */
  1139. #endif /* SOMGD_GetDefaultGrowLimits */
  1140.  
  1141. /*
  1142.  * New Method: SetDefaultOptimalSize
  1143.  */
  1144. typedef OSStatus   (SOMLINK *somTD_HIWindow_SetDefaultOptimalSize)(HIWindow *somSelf, Environment *ev,
  1145.         Point* defaultSize);
  1146. #define somMD_HIWindow_SetDefaultOptimalSize "::HIWindow::SetDefaultOptimalSize"
  1147. #define HIWindow_SetDefaultOptimalSize(somSelf,ev,defaultSize) \
  1148.     (SOM_Resolve(somSelf, HIWindow, SetDefaultOptimalSize) \
  1149.     (somSelf,ev,defaultSize))
  1150. #ifndef SOMGD_SetDefaultOptimalSize
  1151.     #if defined _SetDefaultOptimalSize || defined __SetDefaultOptimalSize
  1152.         #undef _SetDefaultOptimalSize
  1153.         #undef __SetDefaultOptimalSize
  1154.         #define SOMGD_SetDefaultOptimalSize 1
  1155.     #else
  1156.         #define _SetDefaultOptimalSize HIWindow_SetDefaultOptimalSize
  1157.     #endif /* _SetDefaultOptimalSize */
  1158. #endif /* SOMGD_SetDefaultOptimalSize */
  1159.  
  1160. /*
  1161.  * New Method: GetDefaultOptimalSize
  1162.  */
  1163. typedef OSStatus   (SOMLINK *somTD_HIWindow_GetDefaultOptimalSize)(HIWindow *somSelf, Environment *ev,
  1164.         Point* defaultSize);
  1165. #define somMD_HIWindow_GetDefaultOptimalSize "::HIWindow::GetDefaultOptimalSize"
  1166. #define HIWindow_GetDefaultOptimalSize(somSelf,ev,defaultSize) \
  1167.     (SOM_Resolve(somSelf, HIWindow, GetDefaultOptimalSize) \
  1168.     (somSelf,ev,defaultSize))
  1169. #ifndef SOMGD_GetDefaultOptimalSize
  1170.     #if defined _GetDefaultOptimalSize || defined __GetDefaultOptimalSize
  1171.         #undef _GetDefaultOptimalSize
  1172.         #undef __GetDefaultOptimalSize
  1173.         #define SOMGD_GetDefaultOptimalSize 1
  1174.     #else
  1175.         #define _GetDefaultOptimalSize HIWindow_GetDefaultOptimalSize
  1176.     #endif /* _GetDefaultOptimalSize */
  1177. #endif /* SOMGD_GetDefaultOptimalSize */
  1178.  
  1179. /*
  1180.  * New Method: GetRootPanel
  1181.  */
  1182. typedef HIRootPanel*   (SOMLINK *somTD_HIWindow_GetRootPanel)(HIWindow *somSelf, Environment *ev);
  1183. #define somMD_HIWindow_GetRootPanel "::HIWindow::GetRootPanel"
  1184. #define HIWindow_GetRootPanel(somSelf,ev) \
  1185.     (SOM_Resolve(somSelf, HIWindow, GetRootPanel) \
  1186.     (somSelf,ev))
  1187. #ifndef SOMGD_GetRootPanel
  1188.     #if defined _GetRootPanel || defined __GetRootPanel
  1189.         #undef _GetRootPanel
  1190.         #undef __GetRootPanel
  1191.         #define SOMGD_GetRootPanel 1
  1192.     #else
  1193.         #define _GetRootPanel HIWindow_GetRootPanel
  1194.     #endif /* _GetRootPanel */
  1195. #endif /* SOMGD_GetRootPanel */
  1196.  
  1197. /*
  1198.  * New Method: SetRootPanel
  1199.  */
  1200. typedef OSStatus   (SOMLINK *somTD_HIWindow_SetRootPanel)(HIWindow *somSelf, Environment *ev,
  1201.         HIRootPanel* thePanel);
  1202. #define somMD_HIWindow_SetRootPanel "::HIWindow::SetRootPanel"
  1203. #define HIWindow_SetRootPanel(somSelf,ev,thePanel) \
  1204.     (SOM_Resolve(somSelf, HIWindow, SetRootPanel) \
  1205.     (somSelf,ev,thePanel))
  1206. #ifndef SOMGD_SetRootPanel
  1207.     #if defined _SetRootPanel || defined __SetRootPanel
  1208.         #undef _SetRootPanel
  1209.         #undef __SetRootPanel
  1210.         #define SOMGD_SetRootPanel 1
  1211.     #else
  1212.         #define _SetRootPanel HIWindow_SetRootPanel
  1213.     #endif /* _SetRootPanel */
  1214. #endif /* SOMGD_SetRootPanel */
  1215.  
  1216. /*
  1217.  * New Method: GetEventDispatcher
  1218.  */
  1219. typedef AEDispatcherRef   (SOMLINK *somTD_HIWindow_GetEventDispatcher)(HIWindow *somSelf, Environment *ev);
  1220. #define somMD_HIWindow_GetEventDispatcher "::HIWindow::GetEventDispatcher"
  1221. #define HIWindow_GetEventDispatcher(somSelf,ev) \
  1222.     (SOM_Resolve(somSelf, HIWindow, GetEventDispatcher) \
  1223.     (somSelf,ev))
  1224. #ifndef SOMGD_GetEventDispatcher
  1225.     #if defined _GetEventDispatcher || defined __GetEventDispatcher
  1226.         #undef _GetEventDispatcher
  1227.         #undef __GetEventDispatcher
  1228.         #define SOMGD_GetEventDispatcher 1
  1229.     #else
  1230.         #define _GetEventDispatcher HIWindow_GetEventDispatcher
  1231.     #endif /* _GetEventDispatcher */
  1232. #endif /* SOMGD_GetEventDispatcher */
  1233.  
  1234. /*
  1235.  * New Method: HandleMouseDown
  1236.  */
  1237. typedef OSStatus   (SOMLINK *somTD_HIWindow_HandleMouseDown)(HIWindow *somSelf, Environment *ev,
  1238.         Point* globalPt,
  1239.         EventModifiers modifiers,
  1240.         AppleEvent* theEvent,
  1241.         AppleEvent* reply,
  1242.         AEHandlerTableRef handlerTableRef);
  1243. #define somMD_HIWindow_HandleMouseDown "::HIWindow::HandleMouseDown"
  1244. #define HIWindow_HandleMouseDown(somSelf,ev,globalPt,modifiers,theEvent,reply,handlerTableRef) \
  1245.     (SOM_Resolve(somSelf, HIWindow, HandleMouseDown) \
  1246.     (somSelf,ev,globalPt,modifiers,theEvent,reply,handlerTableRef))
  1247. #ifndef SOMGD_HandleMouseDown
  1248.     #if defined _HandleMouseDown || defined __HandleMouseDown
  1249.         #undef _HandleMouseDown
  1250.         #undef __HandleMouseDown
  1251.         #define SOMGD_HandleMouseDown 1
  1252.     #else
  1253.         #define _HandleMouseDown HIWindow_HandleMouseDown
  1254.     #endif /* _HandleMouseDown */
  1255. #endif /* SOMGD_HandleMouseDown */
  1256.  
  1257. /*
  1258.  * New Method: HandleMouseMoved
  1259.  */
  1260. typedef OSStatus   (SOMLINK *somTD_HIWindow_HandleMouseMoved)(HIWindow *somSelf, Environment *ev,
  1261.         Point* globalPt,
  1262.         EventModifiers modifiers,
  1263.         AppleEvent* theEvent,
  1264.         AppleEvent* reply,
  1265.         AEHandlerTableRef handlerTableRef);
  1266. #define somMD_HIWindow_HandleMouseMoved "::HIWindow::HandleMouseMoved"
  1267. #define HIWindow_HandleMouseMoved(somSelf,ev,globalPt,modifiers,theEvent,reply,handlerTableRef) \
  1268.     (SOM_Resolve(somSelf, HIWindow, HandleMouseMoved) \
  1269.     (somSelf,ev,globalPt,modifiers,theEvent,reply,handlerTableRef))
  1270. #ifndef SOMGD_HandleMouseMoved
  1271.     #if defined _HandleMouseMoved || defined __HandleMouseMoved
  1272.         #undef _HandleMouseMoved
  1273.         #undef __HandleMouseMoved
  1274.         #define SOMGD_HandleMouseMoved 1
  1275.     #else
  1276.         #define _HandleMouseMoved HIWindow_HandleMouseMoved
  1277.     #endif /* _HandleMouseMoved */
  1278. #endif /* SOMGD_HandleMouseMoved */
  1279.  
  1280. /*
  1281.  * New Method: HandleMouseStoppedMoving
  1282.  */
  1283. typedef OSStatus   (SOMLINK *somTD_HIWindow_HandleMouseStoppedMoving)(HIWindow *somSelf, Environment *ev,
  1284.         Point* globalPt,
  1285.         EventModifiers modifiers,
  1286.         AppleEvent* theEvent,
  1287.         AppleEvent* reply,
  1288.         AEHandlerTableRef handlerTableRef);
  1289. #define somMD_HIWindow_HandleMouseStoppedMoving "::HIWindow::HandleMouseStoppedMoving"
  1290. #define HIWindow_HandleMouseStoppedMoving(somSelf,ev,globalPt,modifiers,theEvent,reply,handlerTableRef) \
  1291.     (SOM_Resolve(somSelf, HIWindow, HandleMouseStoppedMoving) \
  1292.     (somSelf,ev,globalPt,modifiers,theEvent,reply,handlerTableRef))
  1293. #ifndef SOMGD_HandleMouseStoppedMoving
  1294.     #if defined _HandleMouseStoppedMoving || defined __HandleMouseStoppedMoving
  1295.         #undef _HandleMouseStoppedMoving
  1296.         #undef __HandleMouseStoppedMoving
  1297.         #define SOMGD_HandleMouseStoppedMoving 1
  1298.     #else
  1299.         #define _HandleMouseStoppedMoving HIWindow_HandleMouseStoppedMoving
  1300.     #endif /* _HandleMouseStoppedMoving */
  1301. #endif /* SOMGD_HandleMouseStoppedMoving */
  1302.  
  1303. /*
  1304.  * New Method: HandleMouseUp
  1305.  */
  1306. typedef OSStatus   (SOMLINK *somTD_HIWindow_HandleMouseUp)(HIWindow *somSelf, Environment *ev,
  1307.         Point* globalPt,
  1308.         EventModifiers modifiers,
  1309.         AppleEvent* theEvent,
  1310.         AppleEvent* reply,
  1311.         AEHandlerTableRef handlerTableRef);
  1312. #define somMD_HIWindow_HandleMouseUp "::HIWindow::HandleMouseUp"
  1313. #define HIWindow_HandleMouseUp(somSelf,ev,globalPt,modifiers,theEvent,reply,handlerTableRef) \
  1314.     (SOM_Resolve(somSelf, HIWindow, HandleMouseUp) \
  1315.     (somSelf,ev,globalPt,modifiers,theEvent,reply,handlerTableRef))
  1316. #ifndef SOMGD_HandleMouseUp
  1317.     #if defined _HandleMouseUp || defined __HandleMouseUp
  1318.         #undef _HandleMouseUp
  1319.         #undef __HandleMouseUp
  1320.         #define SOMGD_HandleMouseUp 1
  1321.     #else
  1322.         #define _HandleMouseUp HIWindow_HandleMouseUp
  1323.     #endif /* _HandleMouseUp */
  1324. #endif /* SOMGD_HandleMouseUp */
  1325.  
  1326. /*
  1327.  * New Method: HandleMouseDownInBack
  1328.  */
  1329. typedef OSStatus   (SOMLINK *somTD_HIWindow_HandleMouseDownInBack)(HIWindow *somSelf, Environment *ev,
  1330.         Point* portLocalWhere,
  1331.         EventModifiers modifiers,
  1332.         AppleEvent* theEvent,
  1333.         AppleEvent* reply,
  1334.         AEHandlerTableRef handlerTableRef);
  1335. #define somMD_HIWindow_HandleMouseDownInBack "::HIWindow::HandleMouseDownInBack"
  1336. #define HIWindow_HandleMouseDownInBack(somSelf,ev,portLocalWhere,modifiers,theEvent,reply,handlerTableRef) \
  1337.     (SOM_Resolve(somSelf, HIWindow, HandleMouseDownInBack) \
  1338.     (somSelf,ev,portLocalWhere,modifiers,theEvent,reply,handlerTableRef))
  1339. #ifndef SOMGD_HandleMouseDownInBack
  1340.     #if defined _HandleMouseDownInBack || defined __HandleMouseDownInBack
  1341.         #undef _HandleMouseDownInBack
  1342.         #undef __HandleMouseDownInBack
  1343.         #define SOMGD_HandleMouseDownInBack 1
  1344.     #else
  1345.         #define _HandleMouseDownInBack HIWindow_HandleMouseDownInBack
  1346.     #endif /* _HandleMouseDownInBack */
  1347. #endif /* SOMGD_HandleMouseDownInBack */
  1348.  
  1349. /*
  1350.  * New Method: HandleUpdate
  1351.  */
  1352. typedef OSStatus   (SOMLINK *somTD_HIWindow_HandleUpdate)(HIWindow *somSelf, Environment *ev,
  1353.         AppleEvent* theEvent,
  1354.         AppleEvent* reply,
  1355.         AEHandlerTableRef handlerTableRef);
  1356. #define somMD_HIWindow_HandleUpdate "::HIWindow::HandleUpdate"
  1357. #define HIWindow_HandleUpdate(somSelf,ev,theEvent,reply,handlerTableRef) \
  1358.     (SOM_Resolve(somSelf, HIWindow, HandleUpdate) \
  1359.     (somSelf,ev,theEvent,reply,handlerTableRef))
  1360. #ifndef SOMGD_HandleUpdate
  1361.     #if defined _HandleUpdate || defined __HandleUpdate
  1362.         #undef _HandleUpdate
  1363.         #undef __HandleUpdate
  1364.         #define SOMGD_HandleUpdate 1
  1365.     #else
  1366.         #define _HandleUpdate HIWindow_HandleUpdate
  1367.     #endif /* _HandleUpdate */
  1368. #endif /* SOMGD_HandleUpdate */
  1369.  
  1370. /*
  1371.  * New Method: HandleResize
  1372.  */
  1373. typedef OSStatus   (SOMLINK *somTD_HIWindow_HandleResize)(HIWindow *somSelf, Environment *ev,
  1374.         Rect* originalBounds,
  1375.         Rect* newBounds,
  1376.         AppleEvent* theEvent,
  1377.         AppleEvent* reply,
  1378.         AEHandlerTableRef handlerTableRef);
  1379. #define somMD_HIWindow_HandleResize "::HIWindow::HandleResize"
  1380. #define HIWindow_HandleResize(somSelf,ev,originalBounds,newBounds,theEvent,reply,handlerTableRef) \
  1381.     (SOM_Resolve(somSelf, HIWindow, HandleResize) \
  1382.     (somSelf,ev,originalBounds,newBounds,theEvent,reply,handlerTableRef))
  1383. #ifndef SOMGD_HandleResize
  1384.     #if defined _HandleResize || defined __HandleResize
  1385.         #undef _HandleResize
  1386.         #undef __HandleResize
  1387.         #define SOMGD_HandleResize 1
  1388.     #else
  1389.         #define _HandleResize HIWindow_HandleResize
  1390.     #endif /* _HandleResize */
  1391. #endif /* SOMGD_HandleResize */
  1392.  
  1393. /*
  1394.  * New Method: HandleClose
  1395.  */
  1396. typedef OSStatus   (SOMLINK *somTD_HIWindow_HandleClose)(HIWindow *somSelf, Environment *ev,
  1397.         boolean closeAll,
  1398.         AppleEvent* theEvent,
  1399.         AppleEvent* reply,
  1400.         AEHandlerTableRef handlerTableRef);
  1401. #define somMD_HIWindow_HandleClose "::HIWindow::HandleClose"
  1402. #define HIWindow_HandleClose(somSelf,ev,closeAll,theEvent,reply,handlerTableRef) \
  1403.     (SOM_Resolve(somSelf, HIWindow, HandleClose) \
  1404.     (somSelf,ev,closeAll,theEvent,reply,handlerTableRef))
  1405. #ifndef SOMGD_HandleClose
  1406.     #if defined _HandleClose || defined __HandleClose
  1407.         #undef _HandleClose
  1408.         #undef __HandleClose
  1409.         #define SOMGD_HandleClose 1
  1410.     #else
  1411.         #define _HandleClose HIWindow_HandleClose
  1412.     #endif /* _HandleClose */
  1413. #endif /* SOMGD_HandleClose */
  1414.  
  1415. /*
  1416.  * New Method: AdjustDragLimits
  1417.  */
  1418. typedef void   (SOMLINK *somTD_HIWindow_AdjustDragLimits)(HIWindow *somSelf, Environment *ev,
  1419.         Rect* dragLimits);
  1420. #define somMD_HIWindow_AdjustDragLimits "::HIWindow::AdjustDragLimits"
  1421. #define HIWindow_AdjustDragLimits(somSelf,ev,dragLimits) \
  1422.     (SOM_Resolve(somSelf, HIWindow, AdjustDragLimits) \
  1423.     (somSelf,ev,dragLimits))
  1424. #ifndef SOMGD_AdjustDragLimits
  1425.     #if defined _AdjustDragLimits || defined __AdjustDragLimits
  1426.         #undef _AdjustDragLimits
  1427.         #undef __AdjustDragLimits
  1428.         #define SOMGD_AdjustDragLimits 1
  1429.     #else
  1430.         #define _AdjustDragLimits HIWindow_AdjustDragLimits
  1431.     #endif /* _AdjustDragLimits */
  1432. #endif /* SOMGD_AdjustDragLimits */
  1433.  
  1434. /*
  1435.  * New Method: AdjustGrowLimits
  1436.  */
  1437. typedef void   (SOMLINK *somTD_HIWindow_AdjustGrowLimits)(HIWindow *somSelf, Environment *ev,
  1438.         Point* minimumSize,
  1439.         Point* maximumSize);
  1440. #define somMD_HIWindow_AdjustGrowLimits "::HIWindow::AdjustGrowLimits"
  1441. #define HIWindow_AdjustGrowLimits(somSelf,ev,minimumSize,maximumSize) \
  1442.     (SOM_Resolve(somSelf, HIWindow, AdjustGrowLimits) \
  1443.     (somSelf,ev,minimumSize,maximumSize))
  1444. #ifndef SOMGD_AdjustGrowLimits
  1445.     #if defined _AdjustGrowLimits || defined __AdjustGrowLimits
  1446.         #undef _AdjustGrowLimits
  1447.         #undef __AdjustGrowLimits
  1448.         #define SOMGD_AdjustGrowLimits 1
  1449.     #else
  1450.         #define _AdjustGrowLimits HIWindow_AdjustGrowLimits
  1451.     #endif /* _AdjustGrowLimits */
  1452. #endif /* SOMGD_AdjustGrowLimits */
  1453.  
  1454. /*
  1455.  * New Method: TrackPart
  1456.  */
  1457. typedef OSStatus   (SOMLINK *somTD_HIWindow_TrackPart)(HIWindow *somSelf, Environment *ev,
  1458.         Point* globalPt,
  1459.         EventModifiers modifiers,
  1460.         HIWindowPartCode whichPart);
  1461. #define somMD_HIWindow_TrackPart "::HIWindow::TrackPart"
  1462. #define HIWindow_TrackPart(somSelf,ev,globalPt,modifiers,whichPart) \
  1463.     (SOM_Resolve(somSelf, HIWindow, TrackPart) \
  1464.     (somSelf,ev,globalPt,modifiers,whichPart))
  1465. #ifndef SOMGD_TrackPart
  1466.     #if defined _TrackPart || defined __TrackPart
  1467.         #undef _TrackPart
  1468.         #undef __TrackPart
  1469.         #define SOMGD_TrackPart 1
  1470.     #else
  1471.         #define _TrackPart HIWindow_TrackPart
  1472.     #endif /* _TrackPart */
  1473. #endif /* SOMGD_TrackPart */
  1474.  
  1475. /*
  1476.  * New Method: DrawFrame
  1477.  */
  1478. typedef void   (SOMLINK *somTD_HIWindow_DrawFrame)(HIWindow *somSelf, Environment *ev,
  1479.         CGrafPtr drawPort);
  1480. #define somMD_HIWindow_DrawFrame "::HIWindow::DrawFrame"
  1481. #define HIWindow_DrawFrame(somSelf,ev,drawPort) \
  1482.     (SOM_Resolve(somSelf, HIWindow, DrawFrame) \
  1483.     (somSelf,ev,drawPort))
  1484. #ifndef SOMGD_DrawFrame
  1485.     #if defined _DrawFrame || defined __DrawFrame
  1486.         #undef _DrawFrame
  1487.         #undef __DrawFrame
  1488.         #define SOMGD_DrawFrame 1
  1489.     #else
  1490.         #define _DrawFrame HIWindow_DrawFrame
  1491.     #endif /* _DrawFrame */
  1492. #endif /* SOMGD_DrawFrame */
  1493.  
  1494. /*
  1495.  * New Method: DrawOutline
  1496.  */
  1497. typedef void   (SOMLINK *somTD_HIWindow_DrawOutline)(HIWindow *somSelf, Environment *ev,
  1498.         Rect* globalOutlineRect,
  1499.         CGrafPtr drawPort);
  1500. #define somMD_HIWindow_DrawOutline "::HIWindow::DrawOutline"
  1501. #define HIWindow_DrawOutline(somSelf,ev,globalOutlineRect,drawPort) \
  1502.     (SOM_Resolve(somSelf, HIWindow, DrawOutline) \
  1503.     (somSelf,ev,globalOutlineRect,drawPort))
  1504. #ifndef SOMGD_DrawOutline
  1505.     #if defined _DrawOutline || defined __DrawOutline
  1506.         #undef _DrawOutline
  1507.         #undef __DrawOutline
  1508.         #define SOMGD_DrawOutline 1
  1509.     #else
  1510.         #define _DrawOutline HIWindow_DrawOutline
  1511.     #endif /* _DrawOutline */
  1512. #endif /* SOMGD_DrawOutline */
  1513.  
  1514. /*
  1515.  * New Method: DrawSizeBox
  1516.  */
  1517. typedef void   (SOMLINK *somTD_HIWindow_DrawSizeBox)(HIWindow *somSelf, Environment *ev,
  1518.         CGrafPtr drawPort);
  1519. #define somMD_HIWindow_DrawSizeBox "::HIWindow::DrawSizeBox"
  1520. #define HIWindow_DrawSizeBox(somSelf,ev,drawPort) \
  1521.     (SOM_Resolve(somSelf, HIWindow, DrawSizeBox) \
  1522.     (somSelf,ev,drawPort))
  1523. #ifndef SOMGD_DrawSizeBox
  1524.     #if defined _DrawSizeBox || defined __DrawSizeBox
  1525.         #undef _DrawSizeBox
  1526.         #undef __DrawSizeBox
  1527.         #define SOMGD_DrawSizeBox 1
  1528.     #else
  1529.         #define _DrawSizeBox HIWindow_DrawSizeBox
  1530.     #endif /* _DrawSizeBox */
  1531. #endif /* SOMGD_DrawSizeBox */
  1532.  
  1533. /*
  1534.  * New Method: HilitePart
  1535.  */
  1536. typedef void   (SOMLINK *somTD_HIWindow_HilitePart)(HIWindow *somSelf, Environment *ev,
  1537.         HIWindowPartCode whichPart,
  1538.         boolean hiliteFlag,
  1539.         CGrafPtr drawPort);
  1540. #define somMD_HIWindow_HilitePart "::HIWindow::HilitePart"
  1541. #define HIWindow_HilitePart(somSelf,ev,whichPart,hiliteFlag,drawPort) \
  1542.     (SOM_Resolve(somSelf, HIWindow, HilitePart) \
  1543.     (somSelf,ev,whichPart,hiliteFlag,drawPort))
  1544. #ifndef SOMGD_HilitePart
  1545.     #if defined _HilitePart || defined __HilitePart
  1546.         #undef _HilitePart
  1547.         #undef __HilitePart
  1548.         #define SOMGD_HilitePart 1
  1549.     #else
  1550.         #define _HilitePart HIWindow_HilitePart
  1551.     #endif /* _HilitePart */
  1552. #endif /* SOMGD_HilitePart */
  1553.  
  1554. /*
  1555.  * New Method: HitTest
  1556.  */
  1557. typedef HIWindowPartCode   (SOMLINK *somTD_HIWindow_HitTest)(HIWindow *somSelf, Environment *ev,
  1558.         Point* globalHitPt);
  1559. #define somMD_HIWindow_HitTest "::HIWindow::HitTest"
  1560. #define HIWindow_HitTest(somSelf,ev,globalHitPt) \
  1561.     (SOM_Resolve(somSelf, HIWindow, HitTest) \
  1562.     (somSelf,ev,globalHitPt))
  1563. #ifndef SOMGD_HitTest
  1564.     #if defined _HitTest || defined __HitTest
  1565.         #undef _HitTest
  1566.         #undef __HitTest
  1567.         #define SOMGD_HitTest 1
  1568.     #else
  1569.         #define _HitTest HIWindow_HitTest
  1570.     #endif /* _HitTest */
  1571. #endif /* SOMGD_HitTest */
  1572.  
  1573. /*
  1574.  * New Method: GetPartRgn
  1575.  */
  1576. typedef OSStatus   (SOMLINK *somTD_HIWindow_GetPartRgn)(HIWindow *somSelf, Environment *ev,
  1577.         HIWindowRgnCode windowRgn,
  1578.         RgnHandle theRgn);
  1579. #define somMD_HIWindow_GetPartRgn "::HIWindow::GetPartRgn"
  1580. #define HIWindow_GetPartRgn(somSelf,ev,windowRgn,theRgn) \
  1581.     (SOM_Resolve(somSelf, HIWindow, GetPartRgn) \
  1582.     (somSelf,ev,windowRgn,theRgn))
  1583. #ifndef SOMGD_GetPartRgn
  1584.     #if defined _GetPartRgn || defined __GetPartRgn
  1585.         #undef _GetPartRgn
  1586.         #undef __GetPartRgn
  1587.         #define SOMGD_GetPartRgn 1
  1588.     #else
  1589.         #define _GetPartRgn HIWindow_GetPartRgn
  1590.     #endif /* _GetPartRgn */
  1591. #endif /* SOMGD_GetPartRgn */
  1592.  
  1593. /*
  1594.  * New Method: GetUnusedGadgetRects
  1595.  */
  1596. typedef OSStatus   (SOMLINK *somTD_HIWindow_GetUnusedGadgetRects)(HIWindow *somSelf, Environment *ev,
  1597.         Rect* leftRect,
  1598.         Rect* rightRect);
  1599. #define somMD_HIWindow_GetUnusedGadgetRects "::HIWindow::GetUnusedGadgetRects"
  1600. #define HIWindow_GetUnusedGadgetRects(somSelf,ev,leftRect,rightRect) \
  1601.     (SOM_Resolve(somSelf, HIWindow, GetUnusedGadgetRects) \
  1602.     (somSelf,ev,leftRect,rightRect))
  1603. #ifndef SOMGD_GetUnusedGadgetRects
  1604.     #if defined _GetUnusedGadgetRects || defined __GetUnusedGadgetRects
  1605.         #undef _GetUnusedGadgetRects
  1606.         #undef __GetUnusedGadgetRects
  1607.         #define SOMGD_GetUnusedGadgetRects 1
  1608.     #else
  1609.         #define _GetUnusedGadgetRects HIWindow_GetUnusedGadgetRects
  1610.     #endif /* _GetUnusedGadgetRects */
  1611. #endif /* SOMGD_GetUnusedGadgetRects */
  1612.  
  1613. /*
  1614.  * New Method: GetGrowDirection
  1615.  */
  1616. typedef HIWindowGrowDirection   (SOMLINK *somTD_HIWindow_GetGrowDirection)(HIWindow *somSelf, Environment *ev,
  1617.         Point* globalHitPt);
  1618. #define somMD_HIWindow_GetGrowDirection "::HIWindow::GetGrowDirection"
  1619. #define HIWindow_GetGrowDirection(somSelf,ev,globalHitPt) \
  1620.     (SOM_Resolve(somSelf, HIWindow, GetGrowDirection) \
  1621.     (somSelf,ev,globalHitPt))
  1622. #ifndef SOMGD_GetGrowDirection
  1623.     #if defined _GetGrowDirection || defined __GetGrowDirection
  1624.         #undef _GetGrowDirection
  1625.         #undef __GetGrowDirection
  1626.         #define SOMGD_GetGrowDirection 1
  1627.     #else
  1628.         #define _GetGrowDirection HIWindow_GetGrowDirection
  1629.     #endif /* _GetGrowDirection */
  1630. #endif /* SOMGD_GetGrowDirection */
  1631.  
  1632. /*
  1633.  * Direct call procedure
  1634.  */
  1635. typedef HILayerRef   (SOMLINK *somTD_HIWindow_GetPrimaryLayer)(Environment *ev);
  1636. #define HIWindow_GetPrimaryLayer ((somTD_HIWindow_GetPrimaryLayer) HIWindowClassData.GetPrimaryLayer)
  1637. #ifndef SOMGD_GetPrimaryLayer
  1638.     #if defined _GetPrimaryLayer || defined __GetPrimaryLayer
  1639.         #undef _GetPrimaryLayer
  1640.         #undef __GetPrimaryLayer
  1641.         #define SOMGD_GetPrimaryLayer 1
  1642.     #else
  1643.         #define _GetPrimaryLayer HIWindow_GetPrimaryLayer
  1644.     #endif /* _GetPrimaryLayer */
  1645. #endif /* SOMGD_GetPrimaryLayer */
  1646.  
  1647. /*
  1648.  * Direct call procedure
  1649.  */
  1650. typedef OSStatus   (SOMLINK *somTD_HIWindow_NewWindowGroup)(Environment *ev,
  1651.         HIWindowGroupRef* newGroup);
  1652. #define HIWindow_NewWindowGroup ((somTD_HIWindow_NewWindowGroup) HIWindowClassData.NewWindowGroup)
  1653. #ifndef SOMGD_NewWindowGroup
  1654.     #if defined _NewWindowGroup || defined __NewWindowGroup
  1655.         #undef _NewWindowGroup
  1656.         #undef __NewWindowGroup
  1657.         #define SOMGD_NewWindowGroup 1
  1658.     #else
  1659.         #define _NewWindowGroup HIWindow_NewWindowGroup
  1660.     #endif /* _NewWindowGroup */
  1661. #endif /* SOMGD_NewWindowGroup */
  1662.  
  1663. /*
  1664.  * Direct call procedure
  1665.  */
  1666. typedef OSStatus   (SOMLINK *somTD_HIWindow_DisposeWindowGroup)(Environment *ev,
  1667.         HIWindowGroupRef groupToDispose);
  1668. #define HIWindow_DisposeWindowGroup ((somTD_HIWindow_DisposeWindowGroup) HIWindowClassData.DisposeWindowGroup)
  1669. #ifndef SOMGD_DisposeWindowGroup
  1670.     #if defined _DisposeWindowGroup || defined __DisposeWindowGroup
  1671.         #undef _DisposeWindowGroup
  1672.         #undef __DisposeWindowGroup
  1673.         #define SOMGD_DisposeWindowGroup 1
  1674.     #else
  1675.         #define _DisposeWindowGroup HIWindow_DisposeWindowGroup
  1676.     #endif /* _DisposeWindowGroup */
  1677. #endif /* SOMGD_DisposeWindowGroup */
  1678.  
  1679. /*
  1680.  * Direct call procedure
  1681.  */
  1682. typedef OSStatus   (SOMLINK *somTD_HIWindow_AddWindowGroupToWindowGroup)(Environment *ev,
  1683.         HIWindowGroupRef baseGroup,
  1684.         HIWindowGroupRef groupToAdd);
  1685. #define HIWindow_AddWindowGroupToWindowGroup ((somTD_HIWindow_AddWindowGroupToWindowGroup) HIWindowClassData.AddWindowGroupToWindowGroup)
  1686. #ifndef SOMGD_AddWindowGroupToWindowGroup
  1687.     #if defined _AddWindowGroupToWindowGroup || defined __AddWindowGroupToWindowGroup
  1688.         #undef _AddWindowGroupToWindowGroup
  1689.         #undef __AddWindowGroupToWindowGroup
  1690.         #define SOMGD_AddWindowGroupToWindowGroup 1
  1691.     #else
  1692.         #define _AddWindowGroupToWindowGroup HIWindow_AddWindowGroupToWindowGroup
  1693.     #endif /* _AddWindowGroupToWindowGroup */
  1694. #endif /* SOMGD_AddWindowGroupToWindowGroup */
  1695.  
  1696. /*
  1697.  * Direct call procedure
  1698.  */
  1699. typedef OSStatus   (SOMLINK *somTD_HIWindow_RemoveWindowGroupFromWindowGroup)(Environment *ev,
  1700.         HIWindowGroupRef baseGroup,
  1701.         HIWindowGroupRef groupToRemove);
  1702. #define HIWindow_RemoveWindowGroupFromWindowGroup ((somTD_HIWindow_RemoveWindowGroupFromWindowGroup) HIWindowClassData.RemoveWindowGroupFromWindowGroup)
  1703. #ifndef SOMGD_RemoveWindowGroupFromWindowGroup
  1704.     #if defined _RemoveWindowGroupFromWindowGroup || defined __RemoveWindowGroupFromWindowGroup
  1705.         #undef _RemoveWindowGroupFromWindowGroup
  1706.         #undef __RemoveWindowGroupFromWindowGroup
  1707.         #define SOMGD_RemoveWindowGroupFromWindowGroup 1
  1708.     #else
  1709.         #define _RemoveWindowGroupFromWindowGroup HIWindow_RemoveWindowGroupFromWindowGroup
  1710.     #endif /* _RemoveWindowGroupFromWindowGroup */
  1711. #endif /* SOMGD_RemoveWindowGroupFromWindowGroup */
  1712.  
  1713. /*
  1714.  * Direct call procedure
  1715.  */
  1716. typedef HIWindowGroupRef   (SOMLINK *somTD_HIWindow_GetApplicationWindowGroup)(Environment *ev);
  1717. #define HIWindow_GetApplicationWindowGroup ((somTD_HIWindow_GetApplicationWindowGroup) HIWindowClassData.GetApplicationWindowGroup)
  1718. #ifndef SOMGD_GetApplicationWindowGroup
  1719.     #if defined _GetApplicationWindowGroup || defined __GetApplicationWindowGroup
  1720.         #undef _GetApplicationWindowGroup
  1721.         #undef __GetApplicationWindowGroup
  1722.         #define SOMGD_GetApplicationWindowGroup 1
  1723.     #else
  1724.         #define _GetApplicationWindowGroup HIWindow_GetApplicationWindowGroup
  1725.     #endif /* _GetApplicationWindowGroup */
  1726. #endif /* SOMGD_GetApplicationWindowGroup */
  1727.  
  1728. /*
  1729.  * Direct call procedure
  1730.  */
  1731. typedef HIWindowGroupRef   (SOMLINK *somTD_HIWindow_GetWindowClassWindowGroup)(Environment *ev,
  1732.         HIWindowClass windowClass);
  1733. #define HIWindow_GetWindowClassWindowGroup ((somTD_HIWindow_GetWindowClassWindowGroup) HIWindowClassData.GetWindowClassWindowGroup)
  1734. #ifndef SOMGD_GetWindowClassWindowGroup
  1735.     #if defined _GetWindowClassWindowGroup || defined __GetWindowClassWindowGroup
  1736.         #undef _GetWindowClassWindowGroup
  1737.         #undef __GetWindowClassWindowGroup
  1738.         #define SOMGD_GetWindowClassWindowGroup 1
  1739.     #else
  1740.         #define _GetWindowClassWindowGroup HIWindow_GetWindowClassWindowGroup
  1741.     #endif /* _GetWindowClassWindowGroup */
  1742. #endif /* SOMGD_GetWindowClassWindowGroup */
  1743.  
  1744. /*
  1745.  * Direct call procedure
  1746.  */
  1747. typedef OSStatus   (SOMLINK *somTD_HIWindow_GetWindowsInWindowGroup)(Environment *ev,
  1748.         HIWindowGroupRef group,
  1749.         ItemCount requestedWindows,
  1750.         ItemCount* totalWindows,
  1751.         HIWindow** windows);
  1752. #define HIWindow_GetWindowsInWindowGroup ((somTD_HIWindow_GetWindowsInWindowGroup) HIWindowClassData.GetWindowsInWindowGroup)
  1753. #ifndef SOMGD_GetWindowsInWindowGroup
  1754.     #if defined _GetWindowsInWindowGroup || defined __GetWindowsInWindowGroup
  1755.         #undef _GetWindowsInWindowGroup
  1756.         #undef __GetWindowsInWindowGroup
  1757.         #define SOMGD_GetWindowsInWindowGroup 1
  1758.     #else
  1759.         #define _GetWindowsInWindowGroup HIWindow_GetWindowsInWindowGroup
  1760.     #endif /* _GetWindowsInWindowGroup */
  1761. #endif /* SOMGD_GetWindowsInWindowGroup */
  1762.  
  1763. /*
  1764.  * Direct call procedure
  1765.  */
  1766. typedef OSStatus   (SOMLINK *somTD_HIWindow_GetWindowsInWindowGroupAndLayer)(Environment *ev,
  1767.         HIWindowGroupRef group,
  1768.         HILayerRef layer,
  1769.         ItemCount requestedWindows,
  1770.         ItemCount* totalWindows,
  1771.         HIWindow** windows);
  1772. #define HIWindow_GetWindowsInWindowGroupAndLayer ((somTD_HIWindow_GetWindowsInWindowGroupAndLayer) HIWindowClassData.GetWindowsInWindowGroupAndLayer)
  1773. #ifndef SOMGD_GetWindowsInWindowGroupAndLayer
  1774.     #if defined _GetWindowsInWindowGroupAndLayer || defined __GetWindowsInWindowGroupAndLayer
  1775.         #undef _GetWindowsInWindowGroupAndLayer
  1776.         #undef __GetWindowsInWindowGroupAndLayer
  1777.         #define SOMGD_GetWindowsInWindowGroupAndLayer 1
  1778.     #else
  1779.         #define _GetWindowsInWindowGroupAndLayer HIWindow_GetWindowsInWindowGroupAndLayer
  1780.     #endif /* _GetWindowsInWindowGroupAndLayer */
  1781. #endif /* SOMGD_GetWindowsInWindowGroupAndLayer */
  1782.  
  1783. /*
  1784.  * Direct call procedure
  1785.  */
  1786. typedef OSStatus   (SOMLINK *somTD_HIWindow_GetWindowGroupsInWindowGroup)(Environment *ev,
  1787.         HIWindowGroupRef group,
  1788.         ItemCount requestedGroups,
  1789.         ItemCount* totalGroups,
  1790.         HIWindowGroupRef* groups);
  1791. #define HIWindow_GetWindowGroupsInWindowGroup ((somTD_HIWindow_GetWindowGroupsInWindowGroup) HIWindowClassData.GetWindowGroupsInWindowGroup)
  1792. #ifndef SOMGD_GetWindowGroupsInWindowGroup
  1793.     #if defined _GetWindowGroupsInWindowGroup || defined __GetWindowGroupsInWindowGroup
  1794.         #undef _GetWindowGroupsInWindowGroup
  1795.         #undef __GetWindowGroupsInWindowGroup
  1796.         #define SOMGD_GetWindowGroupsInWindowGroup 1
  1797.     #else
  1798.         #define _GetWindowGroupsInWindowGroup HIWindow_GetWindowGroupsInWindowGroup
  1799.     #endif /* _GetWindowGroupsInWindowGroup */
  1800. #endif /* SOMGD_GetWindowGroupsInWindowGroup */
  1801.  
  1802. /*
  1803.  * Direct call procedure
  1804.  */
  1805. typedef HIWindow*   (SOMLINK *somTD_HIWindow_FrontWindowOfWindowGroup)(Environment *ev,
  1806.         HIWindowGroupRef group);
  1807. #define HIWindow_FrontWindowOfWindowGroup ((somTD_HIWindow_FrontWindowOfWindowGroup) HIWindowClassData.FrontWindowOfWindowGroup)
  1808. #ifndef SOMGD_FrontWindowOfWindowGroup
  1809.     #if defined _FrontWindowOfWindowGroup || defined __FrontWindowOfWindowGroup
  1810.         #undef _FrontWindowOfWindowGroup
  1811.         #undef __FrontWindowOfWindowGroup
  1812.         #define SOMGD_FrontWindowOfWindowGroup 1
  1813.     #else
  1814.         #define _FrontWindowOfWindowGroup HIWindow_FrontWindowOfWindowGroup
  1815.     #endif /* _FrontWindowOfWindowGroup */
  1816. #endif /* SOMGD_FrontWindowOfWindowGroup */
  1817.  
  1818. /*
  1819.  * Direct call procedure
  1820.  */
  1821. typedef HIWindow*   (SOMLINK *somTD_HIWindow_FrontNonFloatingWindow)(Environment *ev);
  1822. #define HIWindow_FrontNonFloatingWindow ((somTD_HIWindow_FrontNonFloatingWindow) HIWindowClassData.FrontNonFloatingWindow)
  1823. #ifndef SOMGD_FrontNonFloatingWindow
  1824.     #if defined _FrontNonFloatingWindow || defined __FrontNonFloatingWindow
  1825.         #undef _FrontNonFloatingWindow
  1826.         #undef __FrontNonFloatingWindow
  1827.         #define SOMGD_FrontNonFloatingWindow 1
  1828.     #else
  1829.         #define _FrontNonFloatingWindow HIWindow_FrontNonFloatingWindow
  1830.     #endif /* _FrontNonFloatingWindow */
  1831. #endif /* SOMGD_FrontNonFloatingWindow */
  1832.  
  1833. /*
  1834.  * Direct call procedure
  1835.  */
  1836. typedef void   (SOMLINK *somTD_HIWindow_ShowFloatingWindows)(Environment *ev);
  1837. #define HIWindow_ShowFloatingWindows ((somTD_HIWindow_ShowFloatingWindows) HIWindowClassData.ShowFloatingWindows)
  1838. #ifndef SOMGD_ShowFloatingWindows
  1839.     #if defined _ShowFloatingWindows || defined __ShowFloatingWindows
  1840.         #undef _ShowFloatingWindows
  1841.         #undef __ShowFloatingWindows
  1842.         #define SOMGD_ShowFloatingWindows 1
  1843.     #else
  1844.         #define _ShowFloatingWindows HIWindow_ShowFloatingWindows
  1845.     #endif /* _ShowFloatingWindows */
  1846. #endif /* SOMGD_ShowFloatingWindows */
  1847.  
  1848. /*
  1849.  * Direct call procedure
  1850.  */
  1851. typedef void   (SOMLINK *somTD_HIWindow_HideFloatingWindows)(Environment *ev);
  1852. #define HIWindow_HideFloatingWindows ((somTD_HIWindow_HideFloatingWindows) HIWindowClassData.HideFloatingWindows)
  1853. #ifndef SOMGD_HideFloatingWindows
  1854.     #if defined _HideFloatingWindows || defined __HideFloatingWindows
  1855.         #undef _HideFloatingWindows
  1856.         #undef __HideFloatingWindows
  1857.         #define SOMGD_HideFloatingWindows 1
  1858.     #else
  1859.         #define _HideFloatingWindows HIWindow_HideFloatingWindows
  1860.     #endif /* _HideFloatingWindows */
  1861. #endif /* SOMGD_HideFloatingWindows */
  1862.  
  1863. /*
  1864.  * Direct call procedure
  1865.  */
  1866. typedef boolean   (SOMLINK *somTD_HIWindow_AreFloatersVisible)(Environment *ev);
  1867. #define HIWindow_AreFloatersVisible ((somTD_HIWindow_AreFloatersVisible) HIWindowClassData.AreFloatersVisible)
  1868. #ifndef SOMGD_AreFloatersVisible
  1869.     #if defined _AreFloatersVisible || defined __AreFloatersVisible
  1870.         #undef _AreFloatersVisible
  1871.         #undef __AreFloatersVisible
  1872.         #define SOMGD_AreFloatersVisible 1
  1873.     #else
  1874.         #define _AreFloatersVisible HIWindow_AreFloatersVisible
  1875.     #endif /* _AreFloatersVisible */
  1876. #endif /* SOMGD_AreFloatersVisible */
  1877.  
  1878. /*
  1879.  * Direct call procedure
  1880.  */
  1881. typedef void   (SOMLINK *somTD_HIWindow_ActivateFloatingWindows)(Environment *ev);
  1882. #define HIWindow_ActivateFloatingWindows ((somTD_HIWindow_ActivateFloatingWindows) HIWindowClassData.ActivateFloatingWindows)
  1883. #ifndef SOMGD_ActivateFloatingWindows
  1884.     #if defined _ActivateFloatingWindows || defined __ActivateFloatingWindows
  1885.         #undef _ActivateFloatingWindows
  1886.         #undef __ActivateFloatingWindows
  1887.         #define SOMGD_ActivateFloatingWindows 1
  1888.     #else
  1889.         #define _ActivateFloatingWindows HIWindow_ActivateFloatingWindows
  1890.     #endif /* _ActivateFloatingWindows */
  1891. #endif /* SOMGD_ActivateFloatingWindows */
  1892.  
  1893. /*
  1894.  * Direct call procedure
  1895.  */
  1896. typedef void   (SOMLINK *somTD_HIWindow_DeactivateFloatingWindows)(Environment *ev);
  1897. #define HIWindow_DeactivateFloatingWindows ((somTD_HIWindow_DeactivateFloatingWindows) HIWindowClassData.DeactivateFloatingWindows)
  1898. #ifndef SOMGD_DeactivateFloatingWindows
  1899.     #if defined _DeactivateFloatingWindows || defined __DeactivateFloatingWindows
  1900.         #undef _DeactivateFloatingWindows
  1901.         #undef __DeactivateFloatingWindows
  1902.         #define SOMGD_DeactivateFloatingWindows 1
  1903.     #else
  1904.         #define _DeactivateFloatingWindows HIWindow_DeactivateFloatingWindows
  1905.     #endif /* _DeactivateFloatingWindows */
  1906. #endif /* SOMGD_DeactivateFloatingWindows */
  1907.  
  1908. /*
  1909.  * Direct call procedure
  1910.  */
  1911. typedef void   (SOMLINK *somTD_HIWindow_EnableAutomaticPaletteActivation)(Environment *ev);
  1912. #define HIWindow_EnableAutomaticPaletteActivation ((somTD_HIWindow_EnableAutomaticPaletteActivation) HIWindowClassData.EnableAutomaticPaletteActivation)
  1913. #ifndef SOMGD_EnableAutomaticPaletteActivation
  1914.     #if defined _EnableAutomaticPaletteActivation || defined __EnableAutomaticPaletteActivation
  1915.         #undef _EnableAutomaticPaletteActivation
  1916.         #undef __EnableAutomaticPaletteActivation
  1917.         #define SOMGD_EnableAutomaticPaletteActivation 1
  1918.     #else
  1919.         #define _EnableAutomaticPaletteActivation HIWindow_EnableAutomaticPaletteActivation
  1920.     #endif /* _EnableAutomaticPaletteActivation */
  1921. #endif /* SOMGD_EnableAutomaticPaletteActivation */
  1922.  
  1923. /*
  1924.  * Direct call procedure
  1925.  */
  1926. typedef void   (SOMLINK *somTD_HIWindow_DisableAutomaticPaletteActivation)(Environment *ev);
  1927. #define HIWindow_DisableAutomaticPaletteActivation ((somTD_HIWindow_DisableAutomaticPaletteActivation) HIWindowClassData.DisableAutomaticPaletteActivation)
  1928. #ifndef SOMGD_DisableAutomaticPaletteActivation
  1929.     #if defined _DisableAutomaticPaletteActivation || defined __DisableAutomaticPaletteActivation
  1930.         #undef _DisableAutomaticPaletteActivation
  1931.         #undef __DisableAutomaticPaletteActivation
  1932.         #define SOMGD_DisableAutomaticPaletteActivation 1
  1933.     #else
  1934.         #define _DisableAutomaticPaletteActivation HIWindow_DisableAutomaticPaletteActivation
  1935.     #endif /* _DisableAutomaticPaletteActivation */
  1936. #endif /* SOMGD_DisableAutomaticPaletteActivation */
  1937.  
  1938. /*
  1939.  * Direct call procedure
  1940.  */
  1941. typedef boolean   (SOMLINK *somTD_HIWindow_IsAutomaticPaletteActivationEnabled)(Environment *ev);
  1942. #define HIWindow_IsAutomaticPaletteActivationEnabled ((somTD_HIWindow_IsAutomaticPaletteActivationEnabled) HIWindowClassData.IsAutomaticPaletteActivationEnabled)
  1943. #ifndef SOMGD_IsAutomaticPaletteActivationEnabled
  1944.     #if defined _IsAutomaticPaletteActivationEnabled || defined __IsAutomaticPaletteActivationEnabled
  1945.         #undef _IsAutomaticPaletteActivationEnabled
  1946.         #undef __IsAutomaticPaletteActivationEnabled
  1947.         #define SOMGD_IsAutomaticPaletteActivationEnabled 1
  1948.     #else
  1949.         #define _IsAutomaticPaletteActivationEnabled HIWindow_IsAutomaticPaletteActivationEnabled
  1950.     #endif /* _IsAutomaticPaletteActivationEnabled */
  1951. #endif /* SOMGD_IsAutomaticPaletteActivationEnabled */
  1952.  
  1953. /*
  1954.  * Direct call procedure
  1955.  */
  1956. typedef HIWindow*   (SOMLINK *somTD_HIWindow_GetHIWindow)(Environment *ev,
  1957.         WindowPtr targetWindow);
  1958. #define HIWindow_GetHIWindow ((somTD_HIWindow_GetHIWindow) HIWindowClassData.GetHIWindow)
  1959. #ifndef SOMGD_GetHIWindow
  1960.     #if defined _GetHIWindow || defined __GetHIWindow
  1961.         #undef _GetHIWindow
  1962.         #undef __GetHIWindow
  1963.         #define SOMGD_GetHIWindow 1
  1964.     #else
  1965.         #define _GetHIWindow HIWindow_GetHIWindow
  1966.     #endif /* _GetHIWindow */
  1967. #endif /* SOMGD_GetHIWindow */
  1968. #ifndef SOM_DONT_USE_INHERITED_MACROS
  1969. #define HIWindow_GetWindow HIObject_GetWindow
  1970. #define HIWindow_GetPort HIObject_GetPort
  1971. #define HIWindow_GetRefLabel HIObject_GetRefLabel
  1972. #define HIWindow_GetCollection HIObject_GetCollection
  1973. #define HIWindow_Init HIObject_Init
  1974. #define HIWindow_Terminate HIObject_Terminate
  1975. #define HIWindow_Clone HIObject_Clone
  1976. #define HIWindow_Release HIObject_Release
  1977. #define HIWindow_GetOwnerCount HIObject_GetOwnerCount
  1978. #define HIWindow_InitFromAERecord HIObject_InitFromAERecord
  1979. #define HIWindow_WriteToAERecord HIObject_WriteToAERecord
  1980. #define HIWindow_CalculateOptimalSize HIObject_CalculateOptimalSize
  1981. #define HIWindow_GetBoundingRect HIObject_GetBoundingRect
  1982. #define HIWindow_SetBoundingRect HIObject_SetBoundingRect
  1983. #define HIWindow_SetPosition HIObject_SetPosition
  1984. #define HIWindow_SetSize HIObject_SetSize
  1985. #define HIWindow_GetUpdateRect HIObject_GetUpdateRect
  1986. #define HIWindow_Enable HIObject_Enable
  1987. #define HIWindow_Disable HIObject_Disable
  1988. #define HIWindow_IsEnabled HIObject_IsEnabled
  1989. #define HIWindow_Show HIObject_Show
  1990. #define HIWindow_Hide HIObject_Hide
  1991. #define HIWindow_IsVisible HIObject_IsVisible
  1992. #define HIWindow_HandleAppleEvent HIObject_HandleAppleEvent
  1993. #define HIWindow_HandleActivate HIObject_HandleActivate
  1994. #define HIWindow_HandleDeactivate HIObject_HandleDeactivate
  1995. #define HIWindow_HandleNavigation HIObject_HandleNavigation
  1996. #define HIWindow_HandleMouseDownInContent HIObject_HandleMouseDownInContent
  1997. #define HIWindow_HandleMouseMovedInContent HIObject_HandleMouseMovedInContent
  1998. #define HIWindow_HandleMouseStoppedMovingInContent HIObject_HandleMouseStoppedMovingInContent
  1999. #define HIWindow_HandleMouseUpInContent HIObject_HandleMouseUpInContent
  2000. #define HIWindow_TakeUserInputFocus HIObject_TakeUserInputFocus
  2001. #define HIWindow_ReleaseUserInputFocus HIObject_ReleaseUserInputFocus
  2002. #define HIWindow_HasUserInputFocus HIObject_HasUserInputFocus
  2003. #define HIWindow_CanReleaseUserInputFocus HIObject_CanReleaseUserInputFocus
  2004. #define HIWindow_SetUserInputFocusFlags HIObject_SetUserInputFocusFlags
  2005. #define HIWindow_GetUserInputFocusFlags HIObject_GetUserInputFocusFlags
  2006. #define HIWindow_SetTitle HIObject_SetTitle
  2007. #define HIWindow_GetTitle HIObject_GetTitle
  2008. #define HIWindow_Draw HIObject_Draw
  2009. #define HIWindow_Erase HIObject_Erase
  2010. #define HIWindow_Invalidate HIObject_Invalidate
  2011. #define HIWindow_GetDrawingMode HIObject_GetDrawingMode
  2012. #define HIWindow_SetDrawingMode HIObject_SetDrawingMode
  2013. #define HIWindow_SetBackgroundPattern HIObject_SetBackgroundPattern
  2014. #define HIWindow_GetBackgroundPattern HIObject_GetBackgroundPattern
  2015. #define HIWindow_Cut HIObject_Cut
  2016. #define HIWindow_Copy HIObject_Copy
  2017. #define HIWindow_Paste HIObject_Paste
  2018. #define HIWindow_Clear HIObject_Clear
  2019. #define HIWindow_GetClipboardSupportFlags HIObject_GetClipboardSupportFlags
  2020. #define HIWindow_AddStateChangeCallback HIObject_AddStateChangeCallback
  2021. #define HIWindow_RemoveStateChangeCallback HIObject_RemoveStateChangeCallback
  2022. #define HIWindow_GetHIObjectFromRefLabel HIObject_GetHIObjectFromRefLabel
  2023. #define HIWindow_GetNewHIObject HIObject_GetNewHIObject
  2024. #define HIWindow_GetNewHIObjectFromResource HIObject_GetNewHIObjectFromResource
  2025. #define HIWindow_DrawContent HIObject_DrawContent
  2026. #define HIWindow_EraseContent HIObject_EraseContent
  2027. #define HIWindow_TranslatePoint HIObject_TranslatePoint
  2028. #define HIWindow_TranslateRect HIObject_TranslateRect
  2029. #define HIWindow_StateChanged HIObject_StateChanged
  2030. #define HIWindow_SetClipboardSupportFlags HIObject_SetClipboardSupportFlags
  2031. #define HIWindow_Verify HIObject_Verify
  2032. #define HIWindow_somInit SOMObject_somInit
  2033. #define HIWindow_somUninit SOMObject_somUninit
  2034. #define HIWindow_somDuplicateReference SOMObject_somDuplicateReference
  2035. #define HIWindow_somCompareReference SOMObject_somCompareReference
  2036. #define HIWindow_somRelease SOMObject_somRelease
  2037. #define HIWindow_somFree SOMObject_somFree
  2038. #define HIWindow_somCanDelete SOMObject_somCanDelete
  2039. #define HIWindow_somGetClass SOMObject_somGetClass
  2040. #define HIWindow_somGetClassName SOMObject_somGetClassName
  2041. #define HIWindow_somGetSize SOMObject_somGetSize
  2042. #define HIWindow_somIsA SOMObject_somIsA
  2043. #define HIWindow_somRespondsTo SOMObject_somRespondsTo
  2044. #define HIWindow_somIsInstanceOf SOMObject_somIsInstanceOf
  2045. #define HIWindow_somDispatch SOMObject_somDispatch
  2046. #define HIWindow_somClassDispatch SOMObject_somClassDispatch
  2047. #define HIWindow_somCastObj SOMObject_somCastObj
  2048. #define HIWindow_somResetObj SOMObject_somResetObj
  2049. #define HIWindow_somPrintSelf SOMObject_somPrintSelf
  2050. #define HIWindow_somDumpSelf SOMObject_somDumpSelf
  2051. #define HIWindow_somDumpSelfInt SOMObject_somDumpSelfInt
  2052. #endif /* SOM_DONT_USE_INHERITED_MACROS */
  2053.  
  2054. #endif       /* SOM_HIWindow_h */
  2055.